ember-fastboot / ember-cli-head

Ember Cli Addon for Adding Content to HTML Head
MIT License
98 stars 34 forks source link

Versions 0.2.2 and 0.3.0 crashing app with assertion error #33

Open adamreisnz opened 7 years ago

adamreisnz commented 7 years ago

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?

laantorchaweb commented 7 years ago

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

laantorchaweb commented 7 years ago

@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.

devdemi commented 7 years ago

./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.

danieledraganti commented 6 years ago

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.

shyshy commented 6 years ago

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.

joshsmith commented 6 years ago

@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?

rwjblue commented 6 years ago

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 commented 6 years ago

Can one of y’all confirm?

xamoom-pali commented 6 years ago

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