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

Deprecation message You tried to look up 'store:main', but this has been deprecated in favor of 'service:store' #65

Closed
adam-knights opened this issue Jun 22, 2015 · 4 comments

Comments

@adam-knights
Copy link

Using Ember 1.13.2 and Ember Data 1.13.2 I get this deprecation message when running http://localhost:4200/tests.

DEPRECATION: You tried to look up 'store:main', but this has been deprecated in favor of 'service:store'.
at ember$data$lib$system$container$proxy$$ContainerProxy.registerDeprecation.preLookupCallback (http://localhost:4200/assets/vendor.js:77620:15)
at Object.ember$data$lib$system$container$proxy$$ContainerProxy.aliasedFactory.create (http://localhost:4200/assets/vendor.js:77604:13)
at instantiate (http://localhost:4200/assets/vendor.js:11998:24)
at lookup (http://localhost:4200/assets/vendor.js:11865:17)
at Object.Container.lookup (http://localhost:4200/assets/vendor.js:11797:14)
at http://localhost:4200/assets/test-support.js:2165:30
at Object.Backburner.run (http://localhost:4200/assets/vendor.js:10776:25)
at Object.run (http://localhost:4200/assets/vendor.js:29984:27)
at exports.default.TestModule.default.extend.setupModel.callbacks.subject (http://localhost:4200/assets/test-support.js:2164:35)

Seems to be coming from line 35 of https://github.com/switchfly/ember-test-helpers/blob/master/lib/ember-test-helpers/test-module-for-model.js, but line 27 may also be of interest to this issue.

More specifically I see this deprecation in a standard generated 'it exists' unit model test, at URL such as http://localhost:4200/tests?testId=50b08f2a.

@rwjblue
Copy link
Member

rwjblue commented Jun 22, 2015

Thank you for reporting, I'll confirm with the Ember Data team, but I believe that we will need to detect version and register the right thing.

@adam-knights
Copy link
Author

Is this also now resolved like #64? By d8c0b4e?

@quaertym
Copy link
Contributor

Fixed by #74

@rwjblue
Copy link
Member

rwjblue commented Jul 29, 2015

Yep, thanks @quaertym!

@rwjblue rwjblue closed this as completed Jul 29, 2015
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

3 participants