29

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

Sathiamoorthy
  • 8,831
  • 9
  • 65
  • 77
Ajith Deivam
  • 736
  • 4
  • 11
  • 27

4 Answers4

53

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",
  ....
  ....
  ....
}
RV.
  • 2,781
  • 3
  • 29
  • 46
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:

ht13
  • 633
  • 7
  • 19
1

Ionic throws this error when you are in a different folder by accident and run the build process. It will not tell you you're in a non-project folder, it just throws this error...

El Dude
  • 5,328
  • 11
  • 54
  • 101
  • Go to the root folder of your project and run from there – El Dude Aug 13 '20 at 23:31
  • I got this bug. But seems like i was not able to fix the same i feel like i am running `ionic lab` command from the root folder but its still didnt frixed it. Can you show me the path of the root which you are refering to? – arunwebber Aug 14 '20 at 05:44
1

Cut out the tsconfig.app.json file from src folder and paste it into your main folder (means where you have src , e2e ,etc files are there ) Easy to say paste it in one directory back.