Closed SeanDez closed 3 years ago
TSError: ⨯ Unable to compile TypeScript:
src/authenticate/router.ts(45,1): error TS1128: Declaration or statement expected.
This is a normal TypeScript error. ts-node uses the TypeScript compiler to check for syntactic and semantic errors. When the compiler returns errors, we throw them. This is intended behavior.
TSError: ⨯ Unable to compile TypeScript: src/authenticate/router.ts(45,1): error TS1128: Declaration or statement expected.
This is a normal TypeScript error. ts-node uses the TypeScript compiler to check for syntactic and semantic errors. When the compiler returns errors, we throw them. This is intended behavior.
I also encountered this problem, what I want to ask is, can ts-node execute ts file, can it only prompt for type errors without blocking
From the docs, you can use --log-error
.
Expected behaviour? So why doesn't it throw this error from one folder, but does when run from another. Using the exact same command the only difference being the folder from which it is run, I either get an error or it runs perfectly. So from one folder it compiles, from the other it doesn't
Directory-sensitive behavior would be due to cwd-mode which is no longer the default as of v10.
Expected Behavior
VsCode runs debugger normally
Actual Behavior
Upon starting the debugger;
Steps to reproduce the problem
Minimal reproduction
See above.
Specifications