-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[REGRESSION] Error is not instanceof error #25016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey, thanks for filing, but this seems to be a duplicate of #12123 In the future using the issue tracker's search functionality can make it easier for us to triage issues. Thanks! |
actually I'm reopening this because I'm not totally sure. But I think part of the cause is actually that you have ts-node running on Node internals targeting ES5 or earlier. Try targeting ES2015 and seeing if that helps. |
Here is my tsconfig:
Also I am sure it's being loaded by ts-node... |
Looks like a ts-node issue. please file this under https://github.com/TypeStrong/ts-node/issues instead |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.9.2
NodeJS: 10.2.1
Search Terms:
Code
Expected behavior:
Native node error from 'net' module is instanceof error
Actual behavior:
It works correctly via node, but not via typescript :(
Typescript:
Node:
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: