-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Resetting the Ember app breaks with "cannot re-register: serializer:-default". #4056
Comments
This does not fix the bug but the recommended way to reset the app is to destroy and recreate the app before each test. This is the default in Ember CLI. What breaks when you do this? |
You should be able to destroy/create and initializers will be called again. |
@kaukas what version of Ember are you using? |
@fivetanley, as I said I can not recreate the app. It's a SPA created once in initializers. I am on version 2.2.0. I found out that App.reset(); is not enough. Adding App.buildRegistry(); solved the issue for me. It seems strange that In any case this is not an issue of Ember Data in particular. Closing it. |
Hello.
I am working on an Ember + Ember Data based application, writing some tests. Before each test I want to reset the whole application but right before the second test this leads to
What is the recommended way to reset the app? I cannot simply destroy and recreate the app as it is done in the Ember Data tests since the app is created once during the page load.
Thank you!
The text was updated successfully, but these errors were encountered: