angular MINERR_ASSET not found 404

I'm getting an error logged to the console:

GET http://localhost:3000/js/lib/angular/MINERR_ASSET 404 (Not Found)     

I saw this post and it said it was a result of not inculding ngRoute module, but I do!

public/js/app.js: = angular.module('mean-blog-seed', ['ngCookies', 'ngResource',     'ui.bootstrap', 'ngRoute', 'mean-blog-seed.controllers', '']);

Then I have a jade file that references angular-route.js:

script(type='text/javascript', src='js/lib/angular/angular.min.js')
script(type='text/javascript', src='js/lib/angular-route/angular-route.min.js')
script(type='text/javascript', src='js/lib/angular-cookies/angular-cookies.min.js')
script(type='text/javascript', src='js/lib/angular-resource/angular-resource.min.js')
script(type='text/javascript', src='js/lib/angular-bootstrap/ui-bootstrap-tpls.min.js')


The repo is here

Update: I posted the issue on github and got referenced to this crazy answer:

The ng-closure-runner runs an angular specific pass during compilation which adds a definition for MINERR_ASSET, that asset is not included with any of the 1.2.x releases (the only releases with source maps). However, the source map references MINERR_ASSET as a source and as a result there is a 404 when requesting the file.

I've only quickly glanced at the grunt tasks and also ng-closure-runner, but I'm under the impression this is likely the ng-closure-runner included minErr.js or some file generated based on it. Either way the correct asset should be packaged with the other source files or MINERR_ASSET should be removed from the source map "sources".


The above code led me to check out that problem and you are getting a call to ng-closure-runner (here:

Try including minErr.js in your JS files.

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




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


to :


no longer getting error in console.

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


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.


Need Your Help

Rollback a pushed rebase

git rollback rebase

I made a mess on my branch after trying to rebase to the master.

WCF, Timer Jobs, Web Service which is better?

wcf sharepoint web-services timer-jobs

I am working with a Web application, based on Asp.Net 3.5 and WSS 3.0 platform. Recenlty i've got a task as follows.