Replies: 3 comments
-
Try using tsx instead of ts-node. Also, make sure to use a ! to tell typescript that variable cannot be undefined. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm wondering why the server.js examples aren't in typescript since everything is typescript 🤔 |
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.
-
I change
server.js
toserver.ts
, and change dev script from"dev": "node server.js"
to"dev": "ts-node --esm server.ts"
, but the console throw some ts error, how do i fix?Beta Was this translation helpful? Give feedback.
All reactions