# Error when using ember.prod.js

**URL:** <https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494>\
**Category:** Uncategorized\
**Created:** [October 14, 2014, 1:28pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494 "2014-10-14T13:28:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keoven](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/keoven/32/9664_2.png) [@Keoven](https://discuss.emberjs.com/u/Keoven)\
**Post date:** [October 14, 2014, 1:28pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494/1 "2014-10-14T13:28:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fivetanley](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/fivetanley/32/15167_2.png) [@fivetanley](https://discuss.emberjs.com/u/fivetanley)\
**Post date:** [October 14, 2014, 9:38pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494/2 "2014-10-14T21:38:58Z")

</div>

I’m also running into this.

---

<div class="post-metadata">

**Author:** ![rwjblue](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rwjblue/32/9411_2.png) [@rwjblue](https://discuss.emberjs.com/u/rwjblue)\
**Post date:** [October 14, 2014, 10:03pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494/3 "2014-10-14T22:03:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Keoven](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/keoven/32/9664_2.png) [@Keoven](https://discuss.emberjs.com/u/Keoven)\
**Post date:** [October 15, 2014, 5:02pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494/4 "2014-10-15T17:02:40Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![fivetanley](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/fivetanley/32/15167_2.png) [@fivetanley](https://discuss.emberjs.com/u/fivetanley)\
**Post date:** [October 15, 2014, 9:20pm UTC](https://discuss.emberjs.com/t/error-when-using-ember-prod-js/6494/5 "2014-10-15T21:20:48Z")

</div>

@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
