-
Notifications
You must be signed in to change notification settings - Fork 36
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
This module should not be used in runtime. Instead, use a transformer during compilation. #14
Comments
hi @jtremback The error you mentioned only happens when the transformer from I hope this clarifies the situation. There is not much I can do if the entire type checking part of compilation is skipped. Is there anything else you'd like to have clarified? Thanks! |
Closing for housekeeping purposes. |
Thanks @woutervh- ! |
I got this same error when trying to run |
Hi @mtiller I'm not sure how |
I ran into this issue again. I found that if I added:
...to my |
@mtiller Thank you for sharing!! |
I'm still getting this error running
My package.json: {
"scripts": {
"start": "ts-node-dev --compiler ttypescript --respawn src/index.ts"
},
"dependencies": {
"typescript": "^3.8.3"
},
"devDependencies": {
"ts-node-dev": "^1.0.0-pre.44",
"ttypescript": "^1.5.10",
"typescript-is": "^0.15.0"
}
} My tsconfig.json: {
"compilerOptions": {
"plugins": [
{ "transform": "typescript-is/lib/transform-inline/transformer" }
],
"target": "es5",
"module": "commonjs",
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true
}
} |
I'm also seeing this error message on a new Node project. The I've tried
|
Any solution for this? Still running into it |
I just wanted to drop this in here for your information. I don't know the root cause, or whether this issue even belongs in this repo but I thought it might be helpful for you to know about this.
When running with
ts-node-dev --compiler ttypescript --respawn --transpileOnly src/index.ts
, I get the errorThis module should not be used in runtime. Instead, use a transformer during compilation.
when the validator runs. I don't get the error in parts of the program where the validator is not running.Removing the
--transpileOnly
fixes the problem.The text was updated successfully, but these errors were encountered: