-
Notifications
You must be signed in to change notification settings - Fork 200
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
Moon packaged, using Webpack. #89
Comments
Ahh, the problem here is that I'm looking into ways to fix this, but for now I would use |
@hypercub3d Can you please copy-paste the Let me know if the issue persists or is resolved, and I will release it in v0.11.1. |
@kingpixil Yes, I can confirm that its working. :) Thank you very much for the quick reply and patch. |
Awesome! Glad I could help. This will be released in the next version. |
Any estimate as to when 0.11.1 will be released? |
@Capital-EX The next release will be a stable v1.0.0. The alpha will be released within the next to weeks, then the beta, and then either a release candidate or a final release 🚀 |
I'm attempting to use Moon in an application, where the code is bundled via Webpack, and I am running into an issue.
The problem seems to be that Moon is attempting to make a reference to a global
window.Moon
instance, which does not exist when it is included via an import call.The code looks something like this.
If I run this code as is, the code builds, and then I get an error in the dev console that states:
If I simply uncomment the line that defines
window.Moon = Moon
, then everything works as expected.This problem also seems to be related to components. If I replace the template code for
moonapp
to readtemplate: '<div id="moonapp"><span>hello</span></div>'
, without registeringwindow.Moon
, then the app mounts and works properly. But if the<cart>
component is invoked in the template, then the error is thrown.The text was updated successfully, but these errors were encountered: