linstula / ember-cli-bootstrap

ember-cli addon for Twitter Bootstrap
37 stars 20 forks source link

Attempting to register an unknown factory: `component:bs-modal` #32

Open mikeumus opened 9 years ago

mikeumus commented 9 years ago

Hey Dockyard, I'm trying to implement ember-cli-bootstrap into an existing ember-cli bower bootstrap project but am getting this error in the browser console:

TypeError: Attempting to register an unknown factory: `component:bs-modal`

This error stops the rest of the page from rendering. I've removed the bower version of bootstrap. A work around I found is to not specify bs-modal in EmberApp ember-cli-bootstrap components:, but I'm just wondering if I missed something?

I found this file which looks like it may have to do with it: https://github.com/ember-addons/bootstrap-for-ember/blob/master/app/scripts/components/BsModalComponent.coffee

I searched for any competing components in our app and didn't see any. Thanks for any guidance.

:smiley:

linstula commented 9 years ago

It's hard to know what the root of the problem is without more specific information. It's possible you might have an older version of "ember-addons.bs_for_ember" specified in your bower.json file (0.7.0 is the most recent bower version). After checking that I would remove 'bower_components/ember-addons.bs_for_ember' and re-install your npm packages (rm -rf node_modules/ && npm install)

mikeumus commented 9 years ago

Thanks for the tip. It was the first time I installed ember-cli-bootstrap from npm and it's ember-addons.bs_for_ember version ~0.7.0. Yeah I'd love to link to the repo but it's not open-source at the moment. I'll keep working with it and see what I find.