Giter VIP home page Giter VIP logo

Comments (21)

tnguyen14 avatar tnguyen14 commented on August 22, 2024

+1 I am getting the error: 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).

from grunt-contrib-handlebars.

lazd avatar lazd commented on August 22, 2024

I feel that the Handlebars version should be the responsibility of the parent package, not the Grunt plugin. This could be accomplished using peerDependencies or by accepting the compiler as an option to the plugin itself. See the discussion in gulp-handlebars surrounding this.

from grunt-contrib-handlebars.

vladikoff avatar vladikoff commented on August 22, 2024

peerDependencies are on their way out so maybe the second option is more suitable

from grunt-contrib-handlebars.

eneko89 avatar eneko89 commented on August 22, 2024

Handlebars 2.0.0-beta.1 has been released. I think it will not take too long to the release of the final version.

from grunt-contrib-handlebars.

goesbysteve avatar goesbysteve commented on August 22, 2024

Is there any work necessary on grunt-contrib-handlebars for using Handlebars 2.0.0?

from grunt-contrib-handlebars.

AlexKvazos avatar AlexKvazos commented on August 22, 2024

Is this grunt task compatible with Handlebars 2.0.0?

I am following this guide: http://danburzo.ro/grunt/chapters/handlebars/
and it only works with handlebars 1.3.0

Thanks!

from grunt-contrib-handlebars.

FranckErnewein avatar FranckErnewein commented on August 22, 2024

+1, I'm using this task with grunt-browserify and I had to downgrade Handlebars to 1.3.0

from grunt-contrib-handlebars.

jokesterfr avatar jokesterfr commented on August 22, 2024

Is there a branch where we can test grunt-contrib-handlebars with handlebars 2.0.0?
From what I just saw, handlebars 2.0.0 works just well when I update the version in the grunt-contrib-handlebars package.json.

from grunt-contrib-handlebars.

framerate avatar framerate commented on August 22, 2024

I assume this is old news to you guys, but I just stumbled here after trying to upgrade my bpwer.json to use 2.0 for my client side templates (backbone)

Uncaught Error: Unknown template object: function 

is printed when I load, so I'm interested in knowing why if someone can fill me in.

from grunt-contrib-handlebars.

tnguyen14 avatar tnguyen14 commented on August 22, 2024

If I remember correctly, that is because of the change in this function here: https://github.com/wycats/handlebars.js/blob/master/lib/handlebars/runtime.js#L25

from grunt-contrib-handlebars.

patforg avatar patforg commented on August 22, 2024

Same with me when precompiling using grunt and then using runtime 2.0

Wasgetting Uncaught Error: Unknown template object: function

downgraded to handlebars runtime 1.3.0 and fixes this issue.

from grunt-contrib-handlebars.

simondell avatar simondell commented on August 22, 2024

+1 for the "Unknown template object" error here too. I tried updating my local handlebars inside grunt-contrib-handlebars, using npm-check-updates, but it didn't fix things. Like @FranckErnewein, I downgraded my client-side library to get things working.

from grunt-contrib-handlebars.

yoko avatar yoko commented on August 22, 2024

+1

from grunt-contrib-handlebars.

vladikoff avatar vladikoff commented on August 22, 2024

in v0.9.0

from grunt-contrib-handlebars.

framerate avatar framerate commented on August 22, 2024

Thank you guys!

from grunt-contrib-handlebars.

FranckErnewein avatar FranckErnewein commented on August 22, 2024

Now it works fine with grunt-browserify and Handlebars 2.
Thank you 👍

from grunt-contrib-handlebars.

skindc avatar skindc commented on August 22, 2024

Can you please, please Upgrade this so it handlebars dependency is version 4.

from grunt-contrib-handlebars.

jshaffer avatar jshaffer commented on August 22, 2024

^+1 Support for handlebars 4 would be great

from grunt-contrib-handlebars.

davidcrreis avatar davidcrreis commented on August 22, 2024

+1

from grunt-contrib-handlebars.

matthewgovaere avatar matthewgovaere commented on August 22, 2024

+1 on support for handlebars 4.

from grunt-contrib-handlebars.

vladikoff avatar vladikoff commented on August 22, 2024

https://github.com/gruntjs/grunt-contrib-handlebars/releases/tag/v0.11.0

from grunt-contrib-handlebars.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.