首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >角工作区:我确实运行了应用程序,但是我得到了这种错误,NGCC失败了。

角工作区:我确实运行了应用程序,但是我得到了这种错误,NGCC失败了。
EN

Stack Overflow用户
提问于 2022-05-14 08:48:35
回答 1查看 417关注 0票数 0

生成浏览器应用程序包(阶段:安装)...Error: ENOENT:没有这样的文件或目录,在(file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-CLV7JFJQ.js:333:16) at EsmDependencyHost.recursivelyCollectDependencies (file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:208的Object.openSync (节点:fs:585:3)打开'D:/Harry/client/src/src/main.ts‘(节点:fs:453:35):34)在ProgramBasedEntryPointFinder.getInitialEntryPointPaths (file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:855的EsmDependencyHost.collectDependenciesInFiles (file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:204:12)的EsmDependencyHost.processFile EsmDependencyHost.processFile:10)在(file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:814:35) at file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:1264:33 at new ClusterMaster (file:///D:/Harry/client/node_modules/@angular/compiler-cli/bundles/chunk-NALI3EFD.js:1366:22) D:\Harry\client\node_modules@ngtools\webpack\src\ngcc_processor.js:135抛出新错误(errorMessage+ NGCC failed${errorMessage ? ', see above' : ''}.);^

错误: NGCC失败。在(D:\Harry\client\node_modules@ngtools\webpack\src\ngcc_processor.js:135:19) at D:\Harry\client\node_modules@ngtools\webpack\src\ivy\plugin.js:147:27 at Hook.eval as call at Hook.CALL_DELEGATE as _call at Compiler.newCompilation (D:\Harry\client\node_modules\webpack\lib\Compiler.js:1108:30) at D:\Harry\client\node_modules\webpack\lib\Compiler创建(D:\Harry\client\node_modules\tapable\lib\HookCodeFactory.js:33:10),时的.js:1153:29:31:1)

EN

回答 1

Stack Overflow用户

发布于 2022-05-14 09:30:41

您可以尝试以下方法之一:

  1. in tsconfig.json中,在angularCompilerOptions中设置("enableIvy":false)
  2. 删除node_modules文件夹并重新安装包
  3. ng update @ and /cli@ar角/core
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72238669

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档