You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
varcurrent=this;// If the addon has the _findHost() method (in ember-cli >= 2.7.0), we'll just// use that.if(typeofthis._findHost==='function'){app=this._findHost();}// Otherwise, we'll use this implementation borrowed from the _findHost()// method in ember-cli.// Keep iterating upward until we don't have a grandparent.// Has to do this grandparent check because at some point we hit the project.do{app=current.app||app;}while(current.parent.parent&&(current=current.parent));
The text was updated successfully, but these errors were encountered:
You're right that this addon doesn't support importing from an addon host, however I believe the correct ember-cli issue to reference is #3718 and the recommended fix is to replace app.import usage with Addon.import in order to prevent duplicate imports via isolated calls to app.import, mentioned in ember-cli PR: #5877.
As Addon.import is a newer feature, I think adding the import polyfill for older ember-cli versions would be ideal as well.
You can read full details of this problem here (ember-cli/ember-cli#5747) but it basically shows up when ember-cli-swiper is installed into an addon that is then hosted in an app. There can be multiple levels of this. The above issues references a fix that I think will take care of this for swiper (https://github.com/jamesleebaker/ember-truncate/commit/42d58a1bbdc48f961c91b9fb92e12f5d9e835033):
The text was updated successfully, but these errors were encountered: