-
Notifications
You must be signed in to change notification settings - Fork 27.5k
angular-loader Uncaught ReferenceError: minErr is not defined #4437
Comments
Introduced by @petebacondarwin here: I think to fix, we could just remove the minErr reference or mock it. Not sure what the best approach is. |
'assertNotHasOwnProperty' is not defined too ... |
I'm seeing this as well in rc3. |
It is also in 1.2.0 |
Still seeing this error in 1.2.0 bower dist |
I'll look into this. On 9 November 2013 23:48, Casey notifications@github.com wrote:
|
angular loader is not required if you load angular.js as your first dependency. But angular loader have bugs because its builded from src/loader wich requires minError and assertNotHasOwnProperty functions and $injectorMinErr which will trow an error if module dependency is not specified and module definition is not already defined. https://github.com/angular/angular.js/blob/master/src/loader.js |
I have submitted a PR that fixes this. |
This significantly increases the size of the loader: - minified: 1031bytes -> 1509bytes (+46%) - minified + gzip: 593bytes -> 810bytes (+36%) I'm not entirely sold on the idea of shipping minErr with the loade. With the current state, the angular-loader behavior is completely broken - this is just a quick fix, we can revisit this change in the future. Closes angular#4437 Closes angular#4874
This significantly increases the size of the loader: - minified: 1031bytes -> 1509bytes (+46%) - minified + gzip: 593bytes -> 810bytes (+36%) I'm not entirely sold on the idea of shipping minErr with the loade. With the current state, the angular-loader behavior is completely broken - this is just a quick fix, we can revisit this change in the future. Closes angular#4437 Closes angular#4874
We're using $script.js and angular-loader to async load our project and the introduction of minErr in 1.2.0-rc.3 is breaking.
http://plnkr.co/edit/rxxHSS0RZd6Xavsq5Njc?p=preview shows the error if you open up the console when running it.
The text was updated successfully, but these errors were encountered: