-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error when consumed by an addon and not an app #29
Comments
This is a problem in general with ember-cli addons. There is not a good API yet. See also ember-cli/ember-cli#3718 |
I see. Are you opposed to a temp solution like this? //edit: at the top of included hook
if (typeof app.import !== 'function' && app.app) {
app = app.app;
} Tried that locally and it works. If |
I think the reason why this doesn't currently work in ember-cli is because you enter in the "deps of deps" problem and currently there is no way to dedupe. Your hack may need to do for now. |
@asakusuma that seems ok to me. |
Great, I will open a PR |
Temporary workaround to allow an addon to directly use embor-browserify. ef4#29
In
/lib/index.js
, theincluded
hook appears to assume that the passed argument is an app.This is true if an app is directly consuming ember-browserify. From what I can tell, if an addon is consuming ember-browserify, the passed argument has a property called
app
, but is not an app object itself. This causes an error on the first line of the included hook becauseapp.options
is undefined.The text was updated successfully, but these errors were encountered: