我们在管理面板中使用bower
,最近我们的应用停止了处理错误:
当我展开错误时,它来自angular-sanitize
:
f.module("ngSanitize", []).provider("$sanitize", function() {
...
...
...
...
}).info({
angularVersion: "1.6.3"
});
我的bower.json
是
"dependencies": {
"angular-resource": "~1.5.3",
"angular-messages": "~1.5.3",
"angular": "~1.5.3",
"angular-local-storage": "~0.2.7",
"crypto-js": "~3.1.6",
"ng-file-upload": "~12.0.4",
"angular-moment": "~0.10.3",
"angular-ui-calendar": "latest",
"angular-ui-router": "~0.3.1",
"lodash": "~4.13.1",
"bootstrap": "~3.3.6",
"angular-bootstrap": "~2.0.0",
"angular-animate": "~1.5.8",
"angular-touch": "~1.5.8",
"angular-spinner": "~0.8.1",
"angular-jwt": "^0.1.3",
"ng-intl-tel-input": "~1.4.0",
"angular-ui-select": "^0.19.6",
"angular-sanitize": "^1.6.1",
"angular-material": "^1.1.3",
"mdPickers": "^0.7.5"
},
"resolutions": {
"angular": "~1.5.3",
"angular-material": "^1.1.3",
"moment": "~2.11.1"
}
我通过升级
运行了应用程序现在,我无法浏览我的任何路线,因为网址如下:
localhost:5000/#!/search
任何帮助都将不胜感激。
答案 0 :(得分:0)
最后,我发现了angular-material : 1.1.3
的问题。
此Angular Material
的最新版本迫使bower安装最新版本的
angular-aria
angular-sanitize
这就是为什么
f.module("ngSanitize", []).provider("$sanitize", function() {
...
...
...
...
}).info({
angularVersion: "1.6.3"
});
导致整个问题。
恢复1.5.x
解决了我的问题。