ts-node not recognize

i alr tried reinstall and global install still didn't work,i stuck here 6hours straight. my case : i just want nodemon to transpile my ts to js and execute the js which on dist and restart the server like usual :). help thx
4 Replies
rocawear
rocawear2y ago
Keep the nodemon part but remove ts-node stuff from the dev script nodemon will use ts-node
chnmrn.
chnmrn.OP2y ago
Thank you for the help. but i found other way that more simple i guess which put --esm after the ts-node. "exec":"npx ts-node --esm src/index.ts" on the nodemon.json and the not using dev on package.json thx again anyway :3
rocawear
rocawear2y ago
Yeah but it's unnecessary since ts-node works with nodemon without configuration
chnmrn.
chnmrn.OP2y ago
alr tried but it give me that eror also need --esm mybe the nodejs is the problem
Want results from more Discord servers?
Add your server