Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ module.exports = {
}
},
included(app) {
let config = this.app.project.config(app.env);
let config = app.project.config();
Copy link
Copy Markdown
Contributor Author

@bertdeblock bertdeblock Apr 13, 2020

Choose a reason for hiding this comment

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

Using app instead of this.app is the actual fix for the error described in the PR description.


this.appEnv = app.env;
this.appEnv = config.environment;
Copy link
Copy Markdown
Contributor Author

@bertdeblock bertdeblock Apr 13, 2020

Choose a reason for hiding this comment

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

When included as a sub-dependency, app.env seems to be undefined which makes the addon exclude itself from the build because of this check. Using config.environment seems to fix this. Not sure if this is the "correct" fix though.

this.mirageConfig = config['ember-cli-mirage'] || {};

this._super.included.apply(this, arguments);
Expand Down