-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error: Debug Failure. False expression: length must be non-negative, is NaN #15
Comments
Could you try the same code with a previous version of node (7.x)? At the moment I have no time to investigate this, but I suspect it's a backward-compatibility issue. Please note that I haven't merged the latest versions of the compiler, since I'm waiting for the official transformers API in order to build reflec-ts as a plugin (and not as a fork of the whole compiler like now). |
I tried multiple node versions (8.2.1, which worked for me a few months ago on a different PC, 7.10.1 and 6.11.4 LTS) but just get the same error. Really weird! Anyway, I love Reflec-TS, totally understand about you not having the time. I'll keep trying things and let you know if I get it to work again. Isn't the Transformers API public now though? microsoft/TypeScript#13764 Or are you waiting for something else? |
The API was made public some time ago, but there's no way to add Transformer plugins without modifying the In the meantime, you may try to change the compiler target (I see your config has ES2017), since I don't remember if I tested anything beyond ES6 as target. |
Encountered same problem |
Using reflec-ts 0.3.9 with Node 8.6.0. I have the following basic project structure:
src/tests.js
tsconfig.json
I'm running this command:
I get the following output:
If I change reflectionEnabled to false in tsconfig.json then the build succeeds. Not sure what I'm doing wrong! It's weird because I've successfully used reflec-ts before, but it was on a different PC.
The text was updated successfully, but these errors were encountered: