Im using ember to develop a project. Please help me with this error. Im unable to run my project on local. After hitting ember server the build is successful. But on hitting the http://localhost:4200 Loads empty page with console error.
Uncaught Error: Assertion Failed: The initializer 'App Version' has already been registered
at assert (index.js:172)
at Function.initializer (index.js:420)
at registerInitializers (index.js:27)
at loadInitializers (index.js:68)
at Module.callback (app.js:25)
at Module.exports (loader.js:106)
at requireModule (loader.js:27)
at app-boot.js:3
Unable to understand what to do. Any help regarding this would be appreciated.
To debug this further, I would put a breakpoint at the place in loadInitializers that’s mentioned in the stack trace, to answer: does loadInitializers run more than once? And if so, who is calling it?
Also, if it only runs once, what is in the list of initializers it’s trying to run. Does the list have duplicates? If yes, hunt down where they’re coming from.