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
[ERROR] Identifier Meteor has already been declared #10234
Comments
Removing the |
Alright, I seem to have found the issue, it was using My guess would be that the modules appear to be loading asynchronously now, so it allows the browser to resolve the modules at runtime, whereas I assume before, the compiler picked up that the same module was being loaded twice and dealt with it in its own way. I won't close, on the off-chance you want to give your opinion |
BTW, DI pattern was a red herring, this is a general bundling issue which has brought a sleeping bug to life, rather than something specific to my design pattern. |
I believe the reason this started happening in Meteor 1.7 is that the modern bundle now compiles the In any case, it seems like a bug that adding the same file with |
This would have helped catch the underlying problem in #10234.
I've added a warning about duplication between |
In my
elmarti:video-chat
package, I previously had bothapp.addFiles
andapp.mainModule
calls for the same file inpackage.js
, I may have done this through lack of understanding, but it now causes the file to be bundled twice, meaning that there are duplicatelet
declarations.But now this seems to cause the non-fatal error
[ERROR] Identifier Meteor has already been declared
The text was updated successfully, but these errors were encountered: