Replies: 1 comment
-
You can include the
Both TypeScript and ts-node will map from .js to .ts, so importing |
Beta Was this translation helpful? Give feedback.
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to use the ES module to write and run code. My configure
tsconfig.json
is like below.the files and codes in server directory:
RELP:
node --loader ts-node/esm server/main.ts
But I got errors:
Beta Was this translation helpful? Give feedback.
All reactions