-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Failed to import miragejs
#683
Comments
This will be related to #664 Are you using embroider? I'll try to investigate and repro tomorrow |
We are not at the moment. Thanks! Let me know if you need any additional info. |
I am trying out embroider, and seeing this issue (with beta-5), not with (beta-3) |
I have a fix in #684 which I have tested manually in all four scenarios eg. with/without embroider and with/without mirage. I'm not merging right away as the embroider CI builds are unhappy. It would be helpful in the meantime if you could please try with the fix installed and report back:
|
I can confirm my build is succeeding with your fix. Cheers |
Fixes #683 I created a local reproduction, checked the ember-auto-import docs and some real world examples from the @embroider/macros docs. It seems like if we're conditionally importing modules using importSync/macros then we need to explicitly exclude them from ember-auto-import. Have tested this manually with a minimal repro. This could be replicated by adding more ember-try scenarios and using @embroider/macros to gate some tests. Also regenerated yarn.lock.
Fixed in |
5.0.0-beta.5
breaks our build with the following error:Installing
miragejs
ourselves fixes the issue, but our project doesn't use / need MirageJS.The text was updated successfully, but these errors were encountered: