Skip to content
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

Merged
merged 1 commit into from
Mar 1, 2021
Merged

Use "this.import" instead of "app.import" to support lazy engines #420

merged 1 commit into from
Mar 1, 2021

Conversation

bertdeblock
Copy link
Contributor

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 addon
  • ember-tooltips as a dev and normal dependency of a project
  • ember-tooltips as a nested dependency of a project

Copy link
Collaborator

@maxfierke maxfierke left a 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

@bertdeblock
Copy link
Contributor Author

@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.

@maxfierke
Copy link
Collaborator

@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)

@bertdeblock
Copy link
Contributor Author

Downgrading ember-in-element-polyfill to v1.0.0 seems to fix it, so that should already narrow it down a bit.

@maxfierke
Copy link
Collaborator

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.

@maxfierke
Copy link
Collaborator

Removed the 2.18 scenario in #421

@maxfierke
Copy link
Collaborator

Looking at that the ember-cli-moment-shim example, it occurs to me that maybe we should be using this.treePaths.vendor instead of vendor in the import path too 🤔

@bertdeblock
Copy link
Contributor Author

@maxfierke Updated accordingly.

Copy link
Collaborator

@maxfierke maxfierke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:octocat: looks good. Will merge and release later today

@bertdeblock
Copy link
Contributor Author

Thank you! 👍

@maxfierke maxfierke merged commit f656fba into sir-dunxalot:master Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ember-tooltips 3.3.1+ build breaks w/ lazy engines
2 participants