-
Notifications
You must be signed in to change notification settings - Fork 141
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
Use "this.import" instead of "app.import" to support lazy engines #420
Use "this.import" instead of "app.import" to support lazy engines #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, I'll give it a spin again against a reproduction I have.
As an aside: I remember trying this.import
as a solution to this, but I think there may have been some gotcha with it, either something to do with Yarn Workspaces or maybe a bug within ember-engines that has since been fixed
@maxfierke Thanks, that would be great! The project I'm working on also uses Yarn Workspaces. Do you know why the test suite fails atm? I'll try to have a look at it this weekend or monday. |
nope, no idea. Initial looks like some sort of dependency updated underneath, maybe unanchored by ember-try. Was working last time I ran the suite a few weeks ago, so would assume it'll might get resolved on its own but I'll try to take a closer look (probably same timeframe) |
Downgrading |
I might just remove 2.18 from the CI matrix (maybe just temporarily). At this point it's over three years old, and I'm not really interested in figuring out why sometime in the last 20 days, it's suddenly failing CI, so I'll get that updated in master. Then you should be able to rebase and see some green checks. |
Removed the 2.18 scenario in #421 |
Looking at that the ember-cli-moment-shim example, it occurs to me that maybe we should be using |
@maxfierke Updated accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Will merge and release later today
Thank you! 👍 |
Fixes #363.
I'm no Ember CLI expert but this fixes the lazy engines issue for me.
Based on this ember-cli-moment-shim commit.
I've also tested the following scenario's locally to ensure the imports still work properly:
ember-tooltips
as a dev and normal dependency of an addonember-tooltips
as a dev and normal dependency of a projectember-tooltips
as a nested dependency of a project