我刚试着把预编译器设置为咕噜声和把手。我在访问我的模板时遇到了这个错误:
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).有人知道怎么修吗?
发布于 2015-09-05 19:00:01
没关系,我觉得那个插件对Grunt来说已经过时了。如果我错了,请随时纠正我。
我使用grunt-shell,只使用shell来编译它们(在使用节点更新工具栏的版本之后).
shell: {
options: {
stderr: false
},
handlebars: {
command: 'node_modules/handlebars/bin/handlebars src/templates/*.handlebars -f dist/js/templates.js'
}
},https://stackoverflow.com/questions/32416265
复制相似问题