angular - 离子 - 离子服务在网络浏览器上失败?
问题描述
我的离子应用程序运行良好,直到昨天,现在它在通过ionic serve
命令运行时在浏览器控制台上显示以下错误。我没有对任何模块进行任何更改,但是发生了这种情况,
Uncaught TypeError: Cannot read property 'id' of undefined
at registerNgModuleType (core.js:34470)
at core.js:34488
at Array.forEach (<anonymous>)
at registerNgModuleType (core.js:34484)
at new NgModuleFactory$1 (core.js:34651)
at compileNgModuleFactory__POST_R3__ (core.js:40286)
at PlatformRef.bootstrapModule (core.js:40609)
at Module../src/main.ts (main.ts:13)
at __webpack_require__ (bootstrap:84)
at Object.0 (main.ts:14)
但是运行ionic serve
命令的命令行没有显示任何错误,我试过了npm audit fix
,npm install
但没有运气。这里有任何帮助吗?
解决方案
推荐阅读
- java - 使用 org.json 库格式化 LocalDateTime 的问题
- postfix-mta - DKIM 仍被声明为无
- cypress - 赛普拉斯测试 - 期望输入为空
- node.js - 为什么反应创建应用程序中缺少 src 和公用文件夹?
- python - 如何使用 Python 从 PDF 文件中读取简单文本?
- c - 使用 recv() 确定数据包大小的最佳方法是什么?
- javascript - React 项目构建生产在 Xampp 中不起作用
- java - onClick 在 ViewPager 中查看图像
- mysql - 从一个表中选择它们在另一个表中不存在的记录
- arrays - 从我的数组中删除空项目并在选中复选框时删除所选项目