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

"Cannot read property 'outlets' of undefined" On Ember 3.1-beta.1 #770

Closed
lolmaus opened this issue Mar 9, 2018 · 6 comments
Closed

"Cannot read property 'outlets' of undefined" On Ember 3.1-beta.1 #770

lolmaus opened this issue Mar 9, 2018 · 6 comments
Labels

Comments

@lolmaus
Copy link
Contributor

lolmaus commented Mar 9, 2018

Stacktrace from error message:

Uncaught TypeError: Cannot read property 'outlets' of undefined
    at exports.default.getApplicationOutlet (<anonymous>:1478:40)
    at exports.default.buildOutletTree (<anonymous>:1290:49)
    at exports.default.build (<anonymous>:1266:31)
    at Class.viewTree (<anonymous>:4573:33)
    at later (<anonymous>:4547:25)
    at invoke (backburner.js:207)
    at Queue.flush (backburner.js:125)
    at DeferredActionQueues.flush (backburner.js:278)
    at Backburner.end (backburner.js:410)
    at Backburner._runExpiredTimers (backburner.js:831)

Stacktrace from error object:

. . .
getApplicationOutlet @ VM1282:1478
buildOutletTree @ VM1282:1290
build @ VM1282:1266
viewTree @ VM1282:4573
later @ VM1282:4547
invoke @ backburner.js:207
flush @ backburner.js:125

Points to this code:

    /**
     * Returns the application (top) outlet.
     *
     * @return {Object} The application outlet state
     */
    getApplicationOutlet() {
      return this.getRoot().outletState.outlets.main;
    }

Can be reproduced on an empty ember new foo app.

@lolmaus
Copy link
Contributor Author

lolmaus commented Mar 9, 2018

Looks like upgrading to Ember Inspector to 3.0.0 helped.

Sorry, I upgraded it, was seeing 3.0.0 version number and the error. Looks like I had to restart the browser or something.

@nightire
Copy link

@lolmaus This issue shouldn't be closed b/c it reflects an error caused by 3.1-beta.x, as it introduced a new feature: https://github.com/emberjs/rfcs/blob/master/text/0280-remove-application-wrapper.md, sooner or later users will notice this bug.

@lolmaus lolmaus reopened this Mar 21, 2018
@RobbieTheWagner
Copy link
Member

@nightire are you seeing this bug? I was pretty sure we fixed it. If you are on Ember Inspector 3.0.0, it should work with Ember 3.0+.

@nightire
Copy link

@rwwagner90 Yes if you set application-template-wrapper to false by using https://github.com/emberjs/ember-optional-features addon on v3.1-beta.x

image
image

@nightire
Copy link

@rwwagner90 Oh I'm sorry, this is a different error, I misread it, my bad... 😰

@lolmaus lolmaus closed this as completed Mar 22, 2018
@RobbieTheWagner
Copy link
Member

No worries @nightire! If you'd like to help fix that issue, PRs would be greatly appreciated! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants