Search code examples
ember.jsember-cli

Can't make bootstrap work in Ember-cli


I'm trying to import bootstrap into my ember-cli project, i followed the steps into the Usage section of this page

When I run the server I get these 2 errors:

Uncaught Error: Cannot call `compile` without the template compiler loaded. Please load `ember-template-compiler.js` prior to calling `compile

Uncaught Error: Could not find module `ember-cli-bootstrap/utils/test-breadcrumbs` imported from `frontend/helpers/test-breadcrumbs`

I'm working with these versions:

ember: 0.2.7, node: 0.12.3, npm: 2.11.0


Solution

  • You can always install bootstrap via bower

    bower install bootstrap --save

    then in your Brocfile.js add

    app.import('bower_components/bootstrap/dist/css/bootstrap.css');

    http://www.ember-cli.com/user-guide/#stylesheets