0

I am writing an ember app, and not using rails nor grunt for anything. I previously had a short python program that took text files and did some markdown stuff with them, and then compiled them all to a templates.js file using ember-precompile:

ember-precompile templates/*.hbs -f templates/templates.js

This worked great until I upgraded ember, and now I'm getting this error.

Uncaught Template was precompiled with an older version of Handlebars than the current runtime.
Please update your precompiler to a newer version (>= 1.0.0) or downgrade your runtime to an older version (== 1.0.0-rc.3).

I need to upgrade my ember-precompile program, but solutions like changing a grunt config or changing gemfiles are no good for me, since I'm not using either of those tools.

Also, attempts to upgrade or reinstall haven't made any changes at all.

Ember version Version: v1.0.0 Last commit: e2ea0cf (2013-08-31 23:47:39 -0700)

Handlebars version Handlebars.VERSION = "1.0.0";

Feel free to fill in any gaps in my understanding. For short term development purposes I'm just going to put my templates in index.html but I want to do markdown stuff to my templates first, so that won't do forever.

Community
  • 1
  • 1
blaineh
  • 2,263
  • 3
  • 28
  • 46

2 Answers2

0

You would need to recompile your handlebar files using the latest ember-precompile version that matches the run time version. Basically, ember-precompile that you are using is older version but you are currently running the newer version of ember. That is what the compliant is about.

VNarasimhaM
  • 1,460
  • 3
  • 22
  • 36
  • I'm already aware of that, but I'm trying to upgrade my `ember-precompile` but I haven't been able to. I edited my post to make that clear. – blaineh Oct 17 '13 at 21:29
0

Turns out I just needed to learn the magic of github and npm and download a non "release" version of the program and install it. Pretty stupid of me really.

If anyone in the future has this problem, just check out npm install and get one of the fixed versions from github in a zip file or whatever suits you.

blaineh
  • 2,263
  • 3
  • 28
  • 46