ember-cli-bootstrap icon indicating copy to clipboard operation
ember-cli-bootstrap copied to clipboard

Uncaught Error: Unknown template object: function

Open givanse opened this issue 10 years ago • 5 comments

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

givanse avatar Nov 23 '14 23:11 givanse

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

Genkilabs avatar Dec 12 '14 21:12 Genkilabs

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.

kenips avatar Dec 13 '14 22:12 kenips

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:

kriswill avatar Dec 16 '14 05:12 kriswill

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');

Genkilabs avatar Dec 16 '14 20:12 Genkilabs

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

locks avatar Feb 05 '15 01:02 locks