我安装模块化项目,所有包,并运行正常。 当我将角度从1.2.28升级到1.4.4(我需要使用一些新功能并因为来自其他库的依赖)时,出现了一个错误:
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module app.core due to:
Error: [$injector:modulerr] Failed to instantiate module blocks.exception due to:
Error: [$injector:strictdi] config is not using explicit annotation and cannot be invoked in strict mode
我该如何解决这个问题?
答案 0 :(得分:0)
按照AngularJS迁移指南进行操作。我建议先从1.2迁移到1.3,然后再从1.3迁移到1.4。