Replies: 1 comment
-
To answer to myself:
It would have be nice to have an hint of "use I discover it an Stack Owerflow response. The TypeScript Handbook can't say "do not use |
Beta Was this translation helpful? Give feedback.
-
To answer to myself:
It would have be nice to have an hint of "use I discover it an Stack Owerflow response. The TypeScript Handbook can't say "do not use |
Beta Was this translation helpful? Give feedback.
-
I always circle in those errors, it is a fucking nightmare :
Error [ERR_REQUIRE_ESM]: require() of ... not supported.
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"
ReferenceError: exports is not defined in ES module scope
SyntaxError: Cannot use import statement outside a module
error TS1378: Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022'...
How to simply launch some TS with the import of other TS and other packages (who may be mjs) ?
Deno can do it. But it seems that "ts-node" just answer "F_ Y" instead of documenting a troubleshooting solution.
Beta Was this translation helpful? Give feedback.
All reactions