简体   繁体   English

ENOENT:在使用 angular 4 的 tsconfig.app.json 中没有这样的文件或目录?

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

I am using angular 4 and spring boot,while execute the project using command line..its showing error我正在使用 angular 4 和 spring boot,同时使用命令行执行项目..它显示错误

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请参阅下面的错误图像

在此处输入图片说明

Check the path for the tsconfig property in the angular.json file.检查angular.json文件中tsconfig属性的路径。 Correcting that path should fix this error.更正该路径应该可以修复此错误。

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

I researched this issue for the solution: Your Angular project has a tsconfig.app.json.我研究了这个问题的解决方案:您的 Angular 项目有一个 tsconfig.app.json。 This file is being specified in your .angular-cli.json file.这个文件是在你的 .angular-cli.json 文件中指定的。

You could control your app src structure according to below structure.您可以根据以下结构控制您的应用程序 src 结构。

Your app lives in the src folder:您的应用程序位于 src 文件夹中:

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.你可以检查你的项目 src。

References:参考:

从 src 文件夹中剪下 tsconfig.app.json 文件并将其粘贴到您的主文件夹中(意味着您有 src 、 e2e 等文件的位置) 很容易说将其粘贴到一个目录中。

Ionic throws this error when you are in a different folder by accident and run the build process.当您意外位于不同的文件夹中并运行构建过程时,Ionic 会抛出此错误。 It will not tell you you're in a non-project folder, it just throws this error...它不会告诉你你在一个非项目文件夹中,它只会抛出这个错误......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用tsconfig.app.json - Use of tsconfig.app.json 在 tsconfig.app.json 中为 angular 项目定义路径 - define path in tsconfig.app.json for angular project tsconfig.app.json 的别名不起作用 Angular 11 - Aliasing for tsconfig.app.json not working Angular 11 Angular 9 tsconfig.json & tsconfig.app.json 路径未按预期工作 - Angular 9 tsconfig.json & tsconfig.app.json paths are not working as expected Angular 中 tsconfig.json 和 tsconfig.app.json 文件的区别 - Difference between tsconfig.json and tsconfig.app.json files in Angular 更改tsconfig.app.json的位置 - Change the location of tsconfig.app.json 路径在 tsconfig.app.json 中没有按预期工作 - paths is not working in tsconfig.app.json as expected tsconfig.app.json中的baseUrl不会覆盖tsconfig.json中的baseUrl - baseUrl in tsconfig.app.json is not overiding the baseUrl in tsconfig.json 部署到App Engine时找不到tsconfig.app.json - tsconfig.app.json not found when deploying to App Engine 角度5:在安装aws-sdk时,在tsconfig.app.json中删除“类型”:[]或更改为“类型”:[“节点”]后,IE无法工作 - Angular 5: IE not working after removing “types”: [ ] or changing to “types”: [“node”] in tsconfig.app.json during installing of aws-sdk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM