AngularJS ngSanitize Error

牧云@^-^@ 提交于 2019-12-11 02:26:21

问题


Hi guys it's my first question here and I've had searched in many forums but don't found the solution to my problem! Hope you guys can help me!

Problem: I have to use the ngSanitize module but when I run the project I have the following error:

Failed to instantiate module ngSanitize due to: lowercase is not a function.

I've had organized all my .js files and organize all files versions but the problem persists. I don't know what to do anymore!

Thanks a lot! Look forward for the help!


回答1:


I'd found the error, for a unknown reason my sbt was importing the angular in 1.7.0 version, in this angular version the angular.lowercase was removed. Glad you guys are helpful and friendly! Thanks a lot for the help!




回答2:


I faced the same issue, npm was installing random version of ng-sanitize, so I removed ^(caret) sign from package.json for all the dependencies then run npm install, It worked fine.



来源:https://stackoverflow.com/questions/50213977/angularjs-ngsanitize-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!