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

Blueprint for instance-initializer throws exception in Ember 2.17 #143

Open
ryanlabouve opened this issue Apr 12, 2018 · 0 comments
Open

Comments

@ryanlabouve
Copy link

Running into some issues with ember g ember-perf-initializer monitor-perf in 2.17 on this instance initialize:

export function initialize() {
    // Handle 1.12.x case, where signature is
    //  initialize(instance) {...}
    const instance = arguments[1] || arguments[0];
    const container = !!arguments[1] ? arguments[0] : instance.container;

In 2.17 container is actually an applicationInstance. So further down when it tries to do container.lookup... container is undefined and the initializer throws an error.

I'd be happy to update the blueprint if that would help!

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

No branches or pull requests

1 participant