-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 1.4.x with ocLazyLoad 1.0.4 fails to load controller. #221
Comments
I also observe modules not loading with ocLazyLoad 1.0.4 that work fine in 1.0.3. In my case, I'm attempting to $ocLazyLoad.load() a module loaded from webpack. For some reason, it does not invoke the module.config() or module.run() blocks, nor seem to register the module correctly. Note: if I instead call $ocLazyLoad.inject() to initialise the webpack-loaded module, it DOES call the run() block, however the module's dependencies are NOT loaded. Reverting to 1.0.3 causes $ocLazyLoad.load() to work again, however with 1.0.3 for some reason the module.run() method is not called, while the module.config() is. (I'm using Angular 1.4.3) |
Hello, I tried the solution of @scottmcnab and it works. |
revert to 1.0.1 version will bring back run initialising. |
To add to this, I had to revert to v0.5.1 after recently updating to 1.0.4. To be honest, I don't understand a lot about this, so I'll just explain the behaviour:
With versions after Sorry if this is not helpful, I might be able to produce a plunkr for it at a later date. |
+1, not working after upgrading from 1.0.1 to 1.0.4 |
Sorry for the long time without any answer to this, I was away for 3 weeks... |
Exactly the same error as @dgwaldo ( |
+1.
|
Ahh thanks for the test case! Should help a lot :) |
No worries - keep up the good work 🍻 |
fix: calling inject from loaders should pass the "real" module param Fixes #221
Ok it should be fixed in 1.0.6, thank you a lot @phenomnomnominal for the PR & @aberenyi for the test case! |
👏 |
Seems like there may be a regression from 1.0.3 to 1.0.4. The following code works in 1.0.3 and fails in 1.0.4. The error generated is...
Error: [ng:areq] Argument 'sftSearchController' is not a function, got undefined
http://errors.angularjs.org/1.4.2/ng/areq?p0=sftSearchController&p1=not%20aNaNunction%2C%20got%20undefined
at REGEX_STRING_REGEXP (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:68:12)
at assertArg (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:1770:11)
at assertArgFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:1780:3)
at http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8977:9
at compile (webpack:///./
/angular-ui-router/release/angular-ui-router.js?:4018:28)/angular-ui-router/release/angular-ui-router.js?:3959:23)at invokeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8652:9)
at nodeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:8152:11)
at compositeLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:7543:13)
at publicLinkFn (http://cdn.jsdelivr.net/angularjs/1.4.2/angular.js:7418:30)
at updateView (webpack:///./
The text was updated successfully, but these errors were encountered: