从1.4.9升级到1.5.7角后,我收到以下错误:
我将 AngularJs 作为最后一个脚本标记,以避免与我的应用程序代码发生任何冲突。
Error: [$injector:modulerr] Failed to instantiate module ng due to:
this is null
$CompileProvider@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:7656:3
.bind/<@http://localhost/wro/appJS.js?RESOURCE_VERSION=12345-0:23:968
instantiate@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4724:14
provider@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4538:1
supportObject/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4530:16
ngModule@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:2564:7
invoke@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4709:16
runInvokeQueue@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4602:11
loadModules/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4611:11
forEach@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:321:11
loadModules@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4592:5
createInjector@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:4514:19
bootstrap/doBootstrap@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:1751:20
bootstrap@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:1772:1
angularInit@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:1657:5
@https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.js:31468:5
n.Callbacks/j@http://localhost/wro/jqrJS.js?RESOURCE_VERSION=12345-0:6:46277
n.Callbacks/k.fireWith@http://localhost/wro/jqrJS.js?RESOURCE_VERSION=12345-0:6:47095
.ready@http://localhost/wro/jqrJS.js?RESOURCE_VERSION=12345-0:6:48887
I@http://localhost/wro/jqrJS.js?RESOURCE_VERSION=12345-0:6:49078
答案 0 :(得分:0)
我的项目中使用的prototype.js是冲突的。 升级到最新版本1.7.3然后加载jQuery,Angular然后原型解决了这个问题。