ENOENT: no such file or directory in tsconfig.app.json using angular 4?

I researched this issue for the solution: Your Angular project has a tsconfig.app.json. This file is being specified in your .angular-cli.json file.

You could control your app src structure according to below structure.

Your app lives in the src folder:

src
  -app
  -assets
  -environments
  -browserslist
  -favicon.ico
  -index.html
  -karma.conf.js
  -main.ts
  -polyfills.ts
  -styles.css
  -test.ts
  -tsconfig.app.json
  -tsconfig.spec.json
  -tslint.json

You could check your project src.

References:

  • https://github.com/angular/angular-cli/issues/8201

  • https://angular.io/guide/quickstart


Check the path for the tsconfig property in the angular.json file. Correcting that path should fix this error.

"architect":{
  ....
  ....
  ....
  "tsConfig": "apps/projectName/tsconfig.app.json",
  ....
  ....
  ....
}

Tags:

Angular