Repository navigation
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions