-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
ts-node breaks Date reflection mechanism #511
Comments
ping @blakeembrey after a week 😜 |
👍 I've also encountered this issue |
Try using |
Ok, it works but why only |
@blakeembrey why did you close this issue? Does it mean it's not a bug? Will this be covered somehow or is the param workaround the final solution? |
What does the --type-check flag do? We're having the same issue in ts-jest. |
It does mostly what it sounds like. It uses the TypeScript compiler to compile using the language services and type system information. Without it is only a single file transpile. If you don't have type information, you won't be able to get features that are required by having type information (such as reflecting type information as metadata). It is not a bug, if you want type information the solution is to enable type information. Edit: I would imagine every type information reflection would not work with type information, but perhaps it's only type information from external files? I have not verified this. |
I've tested it and every single reflection works (classes from external files, String, Number, Boolean, etc.), only the |
@19majkel94 Without using |
I am running in to this problem too. I am using the As @19majkel94 noted, the only type that doesn't get reflected properly when skipping type checking is I'm not sure how to bring this up with the TS team since |
Can you please clarify this Issue, since I'm new. If I'll use ts-node --type-check, terminal will wait for TS input. |
@An1mus Please check the documentation, it's in the README (you can use environment variables or if you're using by file you can use |
Iʻm not able to get decorator metadata data when using ts-node and I am in fact using --type-check and its still being this way... |
ts-node output:
tsc and node output:
I have no idea what's going on, how can we check the emitted js files?
I'm using ts-node
4.1.0
😉The text was updated successfully, but these errors were encountered: