-
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
[BUG] Duplicate Module Loading #84
Comments
Probably a duplicate of #77 |
Yes, on latest. A plunker would be a mighty undertaking given module complexity I showed. I'll see what I can do but any ideas on your part? |
If you use requireJS I'm guessing that you use Angular.bootstrap. |
Yes, I already do this. |
Encountered same problem. You can see it here: http://deiweb.net/ocLazyLoad/ |
bower bump plz :) |
Yes, I'm fixing another bug and I'll do that right after (today) |
0.3.10 has been released ! |
This did not fix my issue :( |
You have the bug with 0.4.2 ? Well I'm gonna need a code sample to find out the bug... |
Yup in 0.4.2 So I believe this is the scenario: 'core' loads the 'components.toolbar' then 'AppBuilder' reloads it; injecting it twice. |
The lib should only allow one directive of the same name per module. In your case it would store the following definition: {
'components.toolbar': {
'directive': ['toolbar']
}
} This way, you can't register the same directive name twice for the same module. The only reason why you might have this bug was if you had two directives toolbar defined in two different modules and doing the same thing. And I assume that it is not the case here. That's why I need to take a look at your code to reproduce the bug and fix it. Make me a plunkr, or a live web site, or send me the code by mail (olivier.combe@gmail.com) if you don't want it to be public. |
I have latest version but still facing this bug. I am unable to use it for
|
Any chance to have a plunkr ? |
Was stuck with this issue as well. No plunkr as app is huge, but change proposed there - edigitalresearch@c9a1a2c seems to fix it |
@hippich , thanks for your fix. BTW I forgot to mention that I am using Angular 1.2.26 |
@ankur0101, so did it work for you? because I am using angular 1.3.x and may be it is angular 1.3.x only fix. |
Your fix is for both, but the problem is that we should allow runblocks & invokeQueue to be called under certain circumstances even if the module isn't new. That's why I need to reproduce the problem and to fix the real issue. I can't merge this fix... |
Check 0.5.2 I think that it should fix your bug :) |
I'm using AngularJS 1.3.0 ( 1.3.1 has same issue too ) but I'm getting modules loading duplicate times, causing things to randomly break.
Citing errors like:
I was able to narrow down its the reloading issue by adding an if statement around the module invoking only allowing new modules to be loaded. http://www.screencast.com/t/7KhVbZtVlgze
Additionally, if you turn on the debugger you can see the logging invoking it twice. Heres my output displaying the error above: http://www.screencast.com/t/uYnfahFkl
The text was updated successfully, but these errors were encountered: