angular - 如何解决错误:找不到模块“@angular/core/src/view/util”
问题描述
我正在为我最后一年的项目构建一个离子项目,突然我的笔记本电脑短路了。所以现在我正在通过多台计算机/笔记本电脑开发我的项目,但我的项目似乎无法显示它的输出。每次我这样做ionic serve
,它都会抛出一个错误说Runtime Error: Cannot find module "@angular/core/src/view/util"
。我已经对此进行了谷歌搜索,但直到现在还没有答案,即使我有一个类似的问题,它仍然无法解决这个问题。任何人都可以帮助我吗?
解决方案
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!
推荐阅读
- angular7 - 如何防止 ngAfterViewInit() 在 ngOninit 完成执行之前被调用
- python - 将自定义图例(标记颜色)添加到 plotly python
- sass - SASS如何获取列表的第n个值和键?
- google-cloud-platform - 如何在 Google Cloud Storage 上创建和写入 XLSX 文件
- c# - Visual Studio 重构变量类型
- java - Xpath:使用同级同级 xpath 定位同级 xpath
- cassandra - 当我们提供所有分区键时,ALLOW FILTERING 是如何工作的?
- php - 如何显示表中的最后一条记录以及剩余记录?
- python - Config 设置窗口大小 Kivy 的最小值和最大值
- git - 为什么 git stash 手册中不存在“保存”