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
Keep the nodemon part but remove ts-node stuff from the dev script
nodemon will use ts-node
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
Yeah but it's unnecessary since ts-node works with nodemon without configuration
alr tried but it give me that eror also
need --esm mybe the nodejs is the problem