Latest EmberJS versions do not recognize latest steering columns

When I install the latest version of EmberJS (1.0.0-rc.3) and the latest Handlebars (1.0.0-rc.4), I get an error in the console when I visit the page:

Uncaught Error: assertion failed: Ember Handlebars requires Handlebars 1.0.0-rc.3 or greater. Include a SCRIPT tag in the HTML HEAD linking to the Handlebars file before you link to Ember. 

I get this error whenever I install 'vanilla', loading jQuery, Handlebars and EmberJS. I also get these errors when I create a project with Yeomen (both ember generator and coal generator). Everything is updated, I already ran

 npm update -g yo generator-ember generator-charcoal grunt-cli bower 

without updates.

Has anyone experienced this problem before, and how did you solve it?

+4
source share
4 answers

To fix this with Bower and NPM, you need to drop both packages on Handlebars 1.0.0-rc3, because the templates are precompiled in both ember generators and wood fuel with the grunt-ember-templates package. To do this, you need to update the bower.json file (or component.json if you have not updated it) and package.json.

For bower.json (or component.json), simply change the line with the handles from "handlebars": "~1.0.0-rc.3" to "handlebars": "1.0.0-rc.3" .

For package.json, change the line grunt-ember-templates from "grunt-ember-templates": "~0.4.4" to "grunt-ember-templates": "0.4.5" .

Then you need to run npm install and bower install to install the correct packages.

0
source

This will cause a ton of problems for the people who do this following the NetTuts instructions, as they use Bower and / or Yeoman.

Bower is currently installing version 1.0.0-rc.4 on Handlebars, even if you specify the rc.3 version. Very upset for any new user who just messing around and studying in textbooks.

You can download the Handybars rc3 pen version by clicking on the link below, right-clicking and save it as a javascript (.js) file: https://raw.github.com/wycats/handlebars.js/1.0.0-rc. 3 / dist / handlebars.js

Replace the reference script in the html file created by yeoman, or in the ember.js project example with the above.

+9
source

We probably need to wait for rc 4 from ember. The library code checks which version you need to run ember rc 3.

Here you can find more information about this github

Hope this helps,

Juanitos

0
source

Use Handlebars 1.0.0-rc3 with Ember 1.0.0-rc3. With Ember master and the next version of Ember, use Handlebars 1.0.0-rc4.

0
source

Source: https://habr.com/ru/post/1481608/


All Articles