Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

angular

I am using angular 4 and spring boot,while execute the project using command line..its showing error

ENOENT: no such file or directory, stat 'D:\AJITH VANUSTON\Spring Project\1Medeil Project\Project medeil RAR files\1gradle project\angular 4 boot\microservicesample-master\src\tsconfig.app.json' 

Pls see below the Error Image

enter image description here

like image 826
Ajith Deivam Avatar asked Dec 22 '17 08:12

Ajith Deivam


2 Answers

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",
  ....
  ....
  ....
}
like image 136
RV. Avatar answered Nov 13 '22 03:11

RV.


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

like image 3
huseyinturkmenoglu Avatar answered Nov 13 '22 05:11

huseyinturkmenoglu