Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have a mismatch in the version used to compile the <code>Handlebars</code> templates and the version included via the script tag.</p> <p>If you are using <code>grunt-contrib-handlebars</code>, it uses the npm module handlebars to compile the the templates. The handlebars module/project is independent of Ember and has its own revisions that may or not be compatible with Ember.</p> <p>To maintain compatibility with Handlebars Ember needs specific versions of handlebars which it is warning you about.</p> <p>The tricky part here is you need to ensure that <code>grunt-contrib-handlebars</code> is forced to use that specific version of handlebars. </p> <blockquote> <p>Solution 1: Use <a href="https://npmjs.org/doc/shrinkwrap.html" rel="nofollow">shrinkwrap</a> to change grunt-contrib-handlebars's handlebars dependency version.</p> <p>Solution 2: This is what I am currently using. I have switched to <a href="http://www.emblemjs.com" rel="nofollow">Emblem</a>. The emblem grunt task asks for your handlebars file explicitly so you don't have to drop down to node sub dependency management. And your build includes the same file into your script tags, thus avoiding duplication/mismatch for future revisions.</p> </blockquote> <p>Edit: After Gruntfile edit</p> <p>Looking at the Gruntfile I don't see anything amiss. Looks like a standard build process, <code>js -&gt; neuter -&gt; (if prod) -&gt; uglify</code> etc.</p> <p>I think you need to try refreshing both emberjs and handlebars js files. Try using the files from the starter kit itself, those definitely work together.</p> <p>And verify this for your index.html by looking at the unminified source in Chrome/Inspector. Handlebars has the revision numbers below the banner something like <code>Handlebars.VERSION</code> and <code>Handlebars.COMPILER_REVISION</code>. Match those with what you see in the ember.js file, somewhere below <code>@submodule ember-handlebars-compiler</code> in the <code>Ember.assert</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload