首页 > 解决方案 > 如何解决错误:找不到模块“@angular/core/src/view/util”

问题描述

我正在为我最后一年的项目构建一个离子项目,突然我的笔记本电脑短路了。所以现在我正在通过多台计算机/笔记本电脑开发我的项目,但我的项目似乎无法显示它的输出。每次我这样做ionic serve,它都会抛出一个错误说Runtime Error: Cannot find module "@angular/core/src/view/util"。我已经对此进行了谷歌搜索,但直到现在还没有答案,即使我有一个类似的问题,它仍然无法解决这个问题。任何人都可以帮助我吗?

标签: angularionic-frameworknpmionic3

解决方案


Search in the project @angular/core/src/view/util and substitute it with @angular/core. This is probably a problem caused by the auto-importer, since it randomly imports the symbol by a point where it's exported. But you should never and never again import something from a src folder!


推荐阅读