Having compiled my TypeScript project successfully, I intended to run it in VS Code\'s debug mode using ts-node. Problem is, ts-node can\'t find
ts-node
Here's How i fixed it. Add "nodemon --exec ts-node --files src/app.ts" to your dev script.
"scripts": { "start": "node dist/app.js", "dev": "nodemon --exec ts-node --files src/app.ts", "build": "tsc -p", "test": "echo \"Error: no test specified\" && exit 1" },