linstula / ember-cli-bootstrap

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

After install, ember build fails with "Cannot read property 'components' of undefined" #11

Closed jolson88 closed 10 years ago

jolson88 commented 10 years ago

Now that ember-cli 0.0.42 was released, I'm trying to use ember-cli-bootstrap. But after npm install --save-dev ember-cli-bootstrap in the root of my project, the 'ember build' command now fails with the following error:

Cannot read property 'components' of undefined TypeError: Cannot read property 'components' of undefined at EmberCLIBootstrap.included (/home/jolson88/dev/project-lovelace/node_modules/ember-cli-bootstrap/index.js:35:32) at EmberApp. (/home/jolson88/dev/project-lovelace/node_modules/ember-cli/lib/broccoli/ember-app.js:177:13) at Array.forEach (native) at EmberApp._notifyAddonIncluded (/home/jolson88/dev/project-lovelace/node_modules/ember-cli/lib/broccoli/ember-app.js:175:23) at new EmberApp (/home/jolson88/dev/project-lovelace/node_modules/ember-cli/lib/broccoli/ember-app.js:157:8) at Object. (/home/jolson88/dev/project-lovelace/Brocfile.js:5:11) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)

Could this be related to the change away from a "vendor/" directory in 0.0.41?

jolson88 commented 10 years ago

I will see tomorrow evening if I can figure out what's going on and submit a PR with a fix.

WenInCode commented 10 years ago

I have followed the same steps and received the same error, using ember-cli v0.0.42

jolson88 commented 10 years ago

I found the issue. Forking, fixing, and submitting a PR shortly.

linstula commented 10 years ago

This is fixed as of https://github.com/dockyard/ember-cli-bootstrap/pull/12.