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

Broken with Ember 2.3.0-beta.2 #340

Closed
knownasilya opened this issue Dec 9, 2015 · 13 comments
Closed

Broken with Ember 2.3.0-beta.2 #340

knownasilya opened this issue Dec 9, 2015 · 13 comments

Comments

@knownasilya
Copy link
Contributor

I get the following error when using with Ember 2.3.0-beta.2 (using master branch of this addon)

TypeError: Cannot define property:container, object is not extensible.
at Function.defineProperty (native)
at injectDeprecatedContainer (http://localhost:4200/assets/vendor.js:12085:12)
at instantiate (http://localhost:4200/assets/vendor.js:12076:9)
at lookup (http://localhost:4200/assets/vendor.js:11908:17)
at Object.Container.lookup (http://localhost:4200/assets/vendor.js:11838:14)
at fakeContainer [as lookup] (http://localhost:4200/assets/vendor.js:43044:56)
at injectedPropertyGet (http://localhost:4200/assets/vendor.js:27306:18)
at Descriptor.ComputedPropertyPrototype.get (http://localhost:4200/assets/vendor.js:25340:28)
at Object.get (http://localhost:4200/assets/vendor.js:30658:19)
at exports.default._emberMetalMixin.Mixin.create.get (http://localhost:4200/assets/vendor.js:45021:38)

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

Thanks for the report. I'm going to assume this is a bug in 2.3.0 given that it looks like some code that is meant to maintain backwards compat.

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

Did 2.3.0.beta2 get removed? it is not listed as a release in the ember/data repo.

@knownasilya
Copy link
Contributor Author

bower info ember returns the correct thing:

Available versions:

  • 2.3.0-beta.2
  • 2.3.0-beta.1

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

It now says this:

Available versions:
  - 2.3.0-beta.1
  - 2.3.0-beta.1
  - 2.2.1

I am guessing they yanked the beta.2 version

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

my bad, was looking at ember-data!

@rwjblue
Copy link
Contributor

rwjblue commented Dec 9, 2015

We are injecting .container into things looked up from the container. My guess is that https://github.com/firebase/emberfire/blob/master/addon/services/firebase.js#L3-L10 is returning an instance of Firebase, and that it is likely Object.freeze'ed or Object.seal'ed.

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

Ah, thanks for this!

@rwjblue
Copy link
Contributor

rwjblue commented Dec 9, 2015

We can do a better job in Ember on this I think. We should check to see if 'container' in object before assignment. We currently just assume all will work well, except when this happens 😈.

@rwjblue
Copy link
Contributor

rwjblue commented Dec 9, 2015

Submitted emberjs/ember.js#12699 to address.

@tstirrat
Copy link
Contributor

tstirrat commented Dec 9, 2015

👍

@knownasilya
Copy link
Contributor Author

Seems to be working with ember#canary.

@rwjblue
Copy link
Contributor

rwjblue commented Dec 10, 2015

Just pushed the fix to beta, so ember#beta should be fixed soon. It should be included in 2.3.0-beta.3 today/tomorrow.

@tstirrat
Copy link
Contributor

beta.3 is out

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

No branches or pull requests

3 participants