0

I updated my Angular project from V8 to V9. After upgrading successfully and when I run the project it gave me the following warnings: */src/main.ngtypecheck.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig.

I followed as answer which I found here. But I still get the warnings. Here is my tsconfig.app.ts

{
"extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "types": []
  },
  "include": [
    "main.ts",
    "polyfills.ts"
  ]
}

If someone found the solution, please share.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Zaw
  • 11
  • 1
  • 2
  • what about your `tsconfig.json`? – Poul Kruijt Jun 08 '20 at 10:37
  • { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "esnext", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2018", "dom" ] } } – Zaw Jun 08 '20 at 10:48

0 Answers0