Skip to content

Conversation

@achambers
Copy link
Contributor

this.app is only available for addons who are a direct dependency of the consuming app. (docs)

In the case where the addon is a dependency of another addon, this.app is not defined.

However, the included function is passed a parent which is either the consuming app or the parent addon. (docs)

Seeing as we use ember-colpick as a dependency of an addon which is itself a dependency of the app, this.app fails and we need to use app instead. We made this patch to get around this.

Would you consider merging this in to the mainline branch so we can remove our fork?

this.app is only available for addons who are a direct dependency of the
consuming app.

In the case where the addon is a dependency of another addon, this.app
is not defined.

However, the included function is passed a "parent" which is either the
consuming app or the parent addon.

Seeing as we use ember-colpick as a dependency of an addon which is
itself a dependency of the app, we need this.app fails and we need to
use app instead.
@lukemelia lukemelia merged commit 3e00c68 into yapplabs:master Oct 10, 2023
@lukemelia lukemelia added the bug label Oct 10, 2023
@lukemelia lukemelia changed the title Fix how vendored assets are imported Fix how vendored assets are imported to work when addon is a dependency of another addon Oct 10, 2023
@achambers achambers deleted the ac/chore/fix-vendored-imports branch October 10, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants