79693426

Date: 2025-07-07 21:29:31
Score: 2.5
Natty:
Report link

I was having the same problem and fixed using one of the following two ways.

  1. make sure you added "ts-node" in your tsconfig.json as follows
   {
  "ts-node": {
    "files": true
  },
  "compilerOptions": {
   ...
    },
  "include": ["src/**/*.ts", "src/types/**/*.d.ts"],
  "exclude": ["node_modules", "dist"]
}

2. in your package.json add --files option as follows

 "scripts": {
    "start": "node dist/app.js",
    "dev": "nodemon --files src/app.ts"
  },

for more details you can see https://stackoverflow.com/a/62878548/22229159 and https://stackoverflow.com/a/51666714/22229159

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tewodros