当我执行ng s --open
命令时,出现浏览器控制台错误。但是节点终端中没有错误
Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType (core.js:30235) at core.js:30253 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:30249) at core.js:30253 at Array.forEach (<anonymous>) at registerNgModuleType (core.js:30249) at new NgModuleFactory$1 (core.js:30387) at compileNgModuleFactory__POST_R3__ (core.js:34669) at PlatformRef.bootstrapModule (core.js:34966)
但是当我使用ng build --prod
可能是错误原因的应用程序构建应用程序时没有错误,因为同一代码正在执行另一台计算机
应用程序也不会进行任何API调用
您可以删除node_modules文件夹,然后就可以完成npm install
所有工作
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句