Error when using ember.prod.js


#1

Hello,

I’m having a problem when using ember.prod.js. I keep on getting the following error: “Cannot read property ‘connectOutlet’ of undefined”

However, I’m not getting this error when simply using ember.js. I am using ember-cli.

The versions I am currently using are ember 1.7.0 and ember-cli 0.1.1

Thanks! Nelvin


#2

I’m also running into this.


#3

Happy to fix it, but I have no information to even start digging here.


#4

Unfortunately, we can’t replicate this anymore, we are unsure as to what is it that caused it. The only possible causes were because we either:

  1. Reverted ember-data from version 1.0.0-beta.10 to version 1.0.0-beta.9 (Highly unlikely)
  2. We were instantiating the Ember application on the same root twice since Ember.Application.create was called twice. This was the result when we upgraded from ember-cli 0.0.39 to 0.1.1 which removed the Ember app creation from the index.html blueprint.

Hopefully this helps to those that may experience this.


#5

@Keoven thank you so much! We were copying over that script tag into our rails app (we’re using rails to serve the index.html file, using some asset pipeline helpers and preloading data) and this cleared the issue up. Thanks a lot! Thanks for your response @rwjblue!

Edit: to clarify removing the require('myapp')[default].create() fixed it