You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "nodejs" version v13.2.0, ".ts" files cannot be compiled into "ES2015" modules using "ts-node"
Running "ts-node ./rename-by-md5.ts" will report an error.
but Run "tsc && node ./rename-by-md5.js", the program will work normally
ts-node ./rename-by-md5.ts
(node:1784) ExperimentalWarning: The ESM module loader is experimental.
SyntaxError: Unexpected token ':'
at Loader.moduleStrategy (internal/modules/esm/translators.js:84:18)
at link (internal/modules/esm/module_job.js:36:21)
error Command failed with exit code 1.
The text was updated successfully, but these errors were encountered:
masx200
changed the title
在“ nodejs”版本v13.2.0中无法正常编译成“ ES2015”模块使用“ ts-node”
In "nodejs" version v13.2.0 cannot be compiled into "ES2015" module normally using "ts-node"
Dec 12, 2019
masx200
changed the title
In "nodejs" version v13.2.0 cannot be compiled into "ES2015" module normally using "ts-node"
In "nodejs" version v13.2.0, ".ts" files cannot be compiled into "ES2015" modules using "ts-node"
Dec 12, 2019
masx200
changed the title
In "nodejs" version v13.2.0, ".ts" files cannot be compiled into "ES2015" modules using "ts-node"
In "nodejs" version v13.2.0, using "ts-node" ,".ts" files cannot be compiled into "ES2015" modules and work
Dec 12, 2019
This is unfortunately expected behavior, see #436 if you’d like to help support it. I haven’t had the capacity to dive into the latest module loader configuration yet, or figure out the trickier cases of actually allowing an import of a file that doesn’t exist yet because you need to specify extensions now.
In "nodejs" version v13.2.0, ".ts" files cannot be compiled into "ES2015" modules using "ts-node"
Running "ts-node ./rename-by-md5.ts" will report an error.
but Run "tsc && node ./rename-by-md5.js", the program will work normally
tsconfig.json
package.json
rename-by-md5.ts
The text was updated successfully, but these errors were encountered: