ember-cli-head icon indicating copy to clipboard operation
ember-cli-head copied to clipboard

Versions 0.2.2 and 0.3.0 crashing app with assertion error

Open adamreisnz opened this issue 8 years ago • 9 comments

Assertion Failed: The initializer 'head-browser' has already been registered"

Reverting to 0.2.0 fixes the issue. Any work arounds or ways to fix this?

adamreisnz avatar Jun 06 '17 23:06 adamreisnz

The biggest problem is 0.2.2 crashing, it updated on my CI.

laantorchaweb avatar Jun 27 '17 18:06 laantorchaweb

@rwjblue any ideas what this issue could be? I'm not sure if the problem is in the repo or maybe on the page-title repo that is installing this one as a dependency.

I have time to work on a fix if you point me in the right direction.

laantorchaweb avatar Jun 27 '17 19:06 laantorchaweb

./ember-cli-head/app-lt-2-10/instance-initializers/head.js ./ember-cli-head/app/instance-initializers/head.js These two instance initializers was added during build But I can't understand why.

devdemi avatar Jun 29 '17 15:06 devdemi

Any news about this? I have reverted to 0.2.0 but to no avail... it still gives me the Assertion Failed: The initializer 'head-browser' has already been registered" error. I have also reverted ember-cli-meta-tags to 3.1.0, no joy.

danieledraganti avatar Jul 19 '17 09:07 danieledraganti

We were running into this same problem where one person running the project would not run into this issue and another did. We diffed the two project directories and turns out there was a node_modules directory in an in-repo addon for one of the projects and not the other. If we deleted the nested node_modules of the in-repo addon, we don't run into this error!

The in-repo addon had ember-page-title as a dependency, which has this as a dependency.

shyshy avatar Jul 26 '17 21:07 shyshy

@ronco or @rwjblue, sorry for the pings here, but wanted to see if you needed someone else to PR a fix for this – or if the breakage appears to actually be downstream in ember-page-title?

joshsmith avatar Sep 12 '17 21:09 joshsmith

I don’t actually understand what is wrong here. Also, I believe the initializer has been removed so 0.4.0 likely solves this anyways....

rwjblue avatar Oct 05 '17 02:10 rwjblue

Can one of y’all confirm?

rwjblue avatar Oct 05 '17 02:10 rwjblue

Upgraded ember-page-title and added head.hbs, the problem has gone.

xamoom-pali avatar Oct 10 '17 07:10 xamoom-pali