ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 383 forks source link

Is this running version 2.0.0? #80

Closed techguydave closed 10 years ago

techguydave commented 10 years ago

When adding the client-side Handlebars script, I get the following error in the console:

Uncaught Error: Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 2.0.0) or downgrade your runtime to an older version (<= 1.0.rc.2).

I noticed you mentioned in another issue that #68 was an upgrade, and in the packages.json you have ^2.0.0-alpha.4. Is this an issue on my end or is it a bug with the express-handlebars library?

ericf commented 10 years ago

I'm not sure. I do know that there was a Handlebars 2.0 beta release recently. What's the exact version you're running on the client?

Also, why don't you try using that exact same version on the server and simply pass a reference to your copy of Handlebars when using this package. See: https://github.com/ericf/express-handlebars#handlebarsrequirehandlebars

techguydave commented 10 years ago

I was running the 2.0.0-alpha.4 version client-side.

I got the error removed when I changed the client to version to 1.0-rc2, but ultimately decided to go with Angular instead of Ember+Handlebars (for reasons unrelated to this issue).

ericf commented 10 years ago

Ha okay… I'll close this then.