2017-03-14 90 views
2

我們正在利用我們的管理面板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

現在,作爲URL看起來像我無法通過任何途徑我的導航: localhost:5000/#!/search

任何幫助,將不勝感激。

回答

0

最後,我發現angular-material : 1.1.3的問題。

Angular Material這個最新的版本是迫使亭子安裝的

angular-aria angular-sanitize

最新版本這就是爲什麼

f.module("ngSanitize", []).provider("$sanitize", function() { ... ... ... ... }).info({ angularVersion: "1.6.3" });

沒有在1.5.x版本的角度發現並引起這整個問題。

恢復angular-material: 1.1.3 ---> 1.0.0解決了我的問題。