angular MINERR_ASSET not found 404

孤人 提交于 2019-12-04 03:15:21

https://github.com/angular/angular.js/issues/4675

The above code led me to check out that problem and you are getting a call to ng-closure-runner (here: https://github.com/angular/angular.js/blob/a29bff1c98161495fb304d0195c4d2916b357686/bower.json).

Try including minErr.js in your JS files.

Recently I noticed that in Safari I was getting the same error.

"sources":["angular.js","MINERR_ASSET"]

to:

"sources":["angular.js"]

and added non minified version of angularjs files associated with minified version to fixed the console errors. If you are using production version of angularjs, which should be minified version, make sure you add map associated with the library files or you may have unwanted server errors.

in the .map file, I changed

"sources":["angular.js","MINERR_ASSET"],

to :

 "sources":["angular-sanitize.js"]

no longer getting error in console.

I also faced this issue once, make sure you have all three files :

angular-route.js
angular-route.min.js
angular-route.min.js.map 

in your library/vendor folder. and your app definition contains ngRoute :

var myApp = angular.module('myApp',['ngRoute']);

Please vote if this resolution helps you. or share your app.js/error if you still have this issue.

Thanks

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