Issue on NodeJS

I am using node js express with typescript. This is my
tsconfig.json
file

{
  "compilerOptions": {
    "resolveJsonModule": true,
    "target": "es2016",
    "module": "ESNext",
    "moduleResolution": "Bundler",
    "rootDir": "./src",
    "outDir": "./dist",
    "typeRoots": [
      "./types"
    ],
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "strict": false,
    "skipLibCheck": true
  }
}


when running i get this error TypeError: Unknown file extension ".ts" for /example-api/src/index.t
Was this page helpful?