angular / batarang

AngularJS WebInspector Extension for Chrome
MIT License
2.43k stars 338 forks source link

"Multiple modules with name" detection #210

Closed danielbsig closed 9 years ago

danielbsig commented 9 years ago

I'm getting the message above quite a few times, or more specifically:

Multiple modules with name "ui.bootstrap" are being created and they will overwrite each other.

... and similar messages for all of the submodules declared in ui.bootstrap. Now, obviously I'm including these modules more than once, but I can't find where the second include is. Would it be possible to somehow show where each module is defined?

erwinmombay commented 9 years ago

mind creating a reduction in a gist/plunk/fiddle?

SomeKittens commented 9 years ago

Closing, will reopen if we get a reproduction.

rekaburmeister commented 8 years ago

I just had this problem, I included both the -tpls and non-tpls js in my bundle config. It would have been useful to know however where the duplication occurred instead of simply saying "multiple modules with name [name]" something like "module [name] is loaded in [js1] and [js2]... [jsN]"

It was a silly mistake to make but with so many items of the "puzzle" relying on strings rather than names it would be nice to have more aids for debugging the issues.