You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node appears to handle this by detecting syntax errors. I can probably catch compilation errors and check the error codes are syntax errors too and recover from that.
Activity
Igorbek commentedon Apr 16, 2016
@blakeembrey hey, do you have any update on this?
blakeembrey commentedon Apr 16, 2016
See the linked issue in node.
robey commentedon Sep 26, 2016
Looks like this still exists in ts 2.0.
blakeembrey commentedon Sep 26, 2016
Yes, it's unrelated to TypeScript. There's nodejs/node#6171 still pending to support this.
blakeembrey commentedon Oct 15, 2016
Ok, I've implemented basic support for recoverable errors. There may be edge cases until nodejs/node#6171 lands, but I've manually coded the recoverable TypeScript diagnostic codes into https://github.com/TypeStrong/ts-node/blob/master/src/_bin.ts#L362-L369 for now. If you find something that you think should work, let me know and it can be added to the list.
Edit: Remember, this'll only work on node 6+ as that's when the recoverable error export landed.
minor fix TypeStrong#3