-
Notifications
You must be signed in to change notification settings - Fork 6.9k
"Uncaught ReferenceError: minErr is not defined" running scripts/test.bat #110
Comments
Same problem on ubuntu 12.10 |
I copy this code to angular-loader.js, it work...
}; |
Same on OS X. I suppose it's a kink in rc3 that will get ironed out when angular/angular.js#4437 is addressed. Until then, @zsumore's workaround works for me. |
Thanks, zsumore!!! Works for me on Win7 |
Any idea of when a resolution to this will appear? We don't want to modify angular-loader.js. |
Thanks zsumore. It's working for me too. For others doing this fix, don't forget to paste the code into angular-loader.min.js too - just before the line Jim |
Added exclude: ['app/lib/angular/angular-loader*.js'], to config/karma.conf.js and it worked. |
The minErr function is defined in angular.js though for some reason angular-loader is not picking it up. While the workaround outlined above works, it would be educational to find out why it breaks in karma. The karma configuration includes angular.js first so one would think angular-loader would pick it up. |
Had the same issue:
To fix I updated angular.loader.js, line 6 from: var $injectorMinErr = minErr('$injector'); to: var $injectorMinErr = angular.$$minErr('$injector'); and updated angular.loader.min.js line 6 to: (function(k){'use strict';function d(c,b,e){return c[b]||(c[b]=e())}var l=angular.$$minErr("$injector");return d(d(k,"angular",Object),"module",function(){var c={};return function(b,e,f){assertNotHasOwnProperty(b,"module");e&&c.hasOwnProperty(b)&&(c[b]=null);return d(c,b,function(){function a(a,b,d){return function(){c[d||"push"]([a,b,arguments]);return g}}if(!e)throw l("nomod",b);var c=[],d=[],h=a("$injector","invoke"),g={_invokeQueue:c,_runBlocks:d,requires:e,name:b,provider:a("$provide","provider"),factory:a("$provide",
"factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:h,run:function(a){d.push(a);return this}};f&&h(f);return g})}})})(window); I should have just reminified the file, but I don't know what minifier they are using. |
rustyfausak's fixed worked for me as well. |
granteagon thanks that fixed the Problem for me. |
Using rustyfausak's fix. Works great. I recommend you don't modify angular's loader to fix this. ;-) |
This issue is outdated now that we bring in angular via bower. You'll need to run |
If I clone the latest angular-seed (3fb3966), run
npm install
, and then runscripts\test.bat
, I get the following output:So it gives this "minErr is not defined" error, and doesn't run any tests.
I'm using the latest Karma (0.10.2) on Windows 8.
If I clone and then immediately reset to the previous revision (3fb3966) and then
npm install
, then I can run the tests without errors. So it looks like this bug was introduced when angular-seed was updated to use Angular 1.2.0-rc3. I'm not sure whether it's an Angular bug or a problem with the way angular-seed is configured.The text was updated successfully, but these errors were encountered: