Bower包依赖性错误

时间:2017-03-14 05:52:56

标签: angularjs bower

我们在管理面板中使用bower,最近我们的应用停止了处理错误:

enter image description here

当我展开错误时,它来自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" }

我通过升级

运行了应用程序

enter image description here

现在,我无法浏览我的任何路线,因为网址如下: localhost:5000/#!/search

任何帮助都将不胜感激。

1 个答案:

答案 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>}版本的角度中没有找到

导致整个问题。

恢复1.5.x解决了我的问题。