-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
8.2.0 regression #884
8.2.0 regression #884
Comments
Seems like 9691206 then, which itself was an unexpected breaking change in 8.1.0, it can be re-added in 9.0. |
Can you check by running on 8.0.2? |
Personally, this looks more like you added “dom” to the list of types than a change in versions. I’m pretty sure if you remove DOM it’ll work. |
8.0.2 works fine too. I can't remove DOM because project targets both environments and a lot of other things will fail to compile because of that. |
Can you create a reproduction? The change I pointed out, which is the only change of code between the version you say broke, didn’t exist on 8.0.2 which is why I asked you to test it. If that works, there must be something else going on. |
Closing because it this should be failing. In browsers |
I believe ts-node should be running successfully anything that compiles with TypeScript compiler. That code compiles in strict mode with TypeScript and runs both in Node.js and Browser. Moreover, explicit check for property narrows down Please reopen this issue, I will try to create standalone reproducible example in separate repo. |
I'll take a quick look, you are correct. I'd really appreciate any sort of help in the future, usually I'm commenting without having the capacity to fully test. Apologies for closing this without fully understanding. |
Appears to be resolved with https://github.com/TypeStrong/ts-node/releases/tag/v8.4.1. |
Verified, 8.4.1 works, thanks! |
@blakeembrey This change triggered a big loss in performance when watching files (with mocha for instance). Would there be another way to solve the problem ? I'm stuck at version |
Here is my tsconfig.json:
Code sample:
With 8.1.1 it works fine, with 8.2.0 and 8.3.0 it fails with:
Even though project has
@types/node
installed andtsc -b
works fine andtslint
in strict mode doesn't complain either.The text was updated successfully, but these errors were encountered: