Gruntjs 使用grunt contrib车把版本问题预编译车把
我刚刚尝试为grunt和Handlebar设置预编译器。访问我的模板时出现以下错误:Gruntjs 使用grunt contrib车把版本问题预编译车把,gruntjs,handlebars.js,Gruntjs,Handlebars.js,我刚刚尝试为grunt和Handlebar设置预编译器。访问我的模板时出现以下错误: Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade your runtime to an older version (>= 2.0
Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade your runtime to an older version (>= 2.0.0-beta.1).
有人知道如何修复它吗?没关系,我认为这个插件对于Grunt来说已经过时了。如果我错了,请随时纠正我 我使用了
gruntshell
,只是使用shell来编译它们(在使用node更新handlebar的版本之后)
shell: {
options: {
stderr: false
},
handlebars: {
command: 'node_modules/handlebars/bin/handlebars src/templates/*.handlebars -f dist/js/templates.js'
}
},