linstula / ember-cli-bootstrap

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

Uncaught Error: Unknown template object: function #29

Open givanse opened 9 years ago

givanse commented 9 years ago

Nothing fancy, simple installation

npm install --save-dev ember-cli-bootstrap

And the console shows:

Uncaught Error: Unknown template object: function
  template
  hb.template
  (anonymous function)

Versions:

DEBUG: Ember      : 1.9.0-beta.3
DEBUG: Handlebars : 2.0.0 

This happens only after adding the ember-cli-bootstrap add-on.

Upgrade steps if anyone wants to test it: http://emberjs.com/blog/2014/10/16/handlebars-update.html

Genkilabs commented 9 years ago

+1 This now breaks similarly in the production release of Ember 1.9.0

kenips commented 9 years ago

Give this a try: https://github.com/kenips/bootstrap-for-ember/releases/tag/0.8.2. You'll have to update the copy inside node_modules/ember-cli-bootstrap/bower_components no your apps's bower_components

This is not a long term solution though so I'm not going to issue a PR against this. Upstream already has this tracked but will see if it ever gets fixed.

kriswill commented 9 years ago

the ember-addons/bootstrap-for-ember project has been deprecated. apparently, they are working on a new set of projects here: indexiatech/ember-components. But, that project looks like it's in heavy churn mode, and not compatible with this project at all.

YAY :confused:

Genkilabs commented 9 years ago

Well, for those googling, until this project is owned or another is created, if you just want bootstrap to run in Ember-CLI do something like: bower install --save bootstrap

and in Brocfile.js

  // BOOTSTRAP manual install
  app.import('bower_components/bootstrap/dist/css/bootstrap.css');
  app.import('bower_components/bootstrap/dist/css/bootstrap.css.map', { destDir: 'assets' });
  app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot', { destDir: 'fonts' });
  app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf', { destDir: 'fonts' });
  app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg', { destDir: 'fonts' });
  app.import('bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff', { destDir: 'fonts' });
  app.import('bower_components/bootstrap/dist/js/bootstrap.js');
locks commented 9 years ago

@Genkilabs I just ran bower install --save bootstrap but it doesn't come with a dist folder, what now?

[edit] nvm, I nuked everything and it seems to be working.