I have this error, but the difference between this question and my question is that I use gulp instead of grunt.
Firstly, my runbar runtime is handlebars v4.0.5 (js file).
The -v rudder output is 4.0.5
This is my gulpfile.js :
var gulp = require('gulp'); var uglify = require('gulp-uglify'); var handlebars = require('gulp-handlebars'); var wrap = require('gulp-wrap'); var declare = require('gulp-declare'); var concat = require('gulp-concat'); gulp.task('default', ['templates','scripts'], function () { }); gulp.task('templates', function () { gulp.src('templates/*.hbs') .pipe(handlebars()) .pipe(wrap('Handlebars.template(<%= contents %>)')) .pipe(declare({ namespace: 'MyApp.templates', noRedeclare: true,
Main.js
"use strict"; var data = { title: 'This Form', name: 'Joey' }; var html = MyApp.templates.hellotemplate(data);
Where is my problem?
Error:
Search error: the template was precompiled with an older version of the Pen than the current runtime. Upgrade your precompiler to a newer version (> = 4.0.0) or lower the runtime to an earlier version (> = 2.0.0-beta.1).
I precompiled the templates with the gulp command.
Thank you very much!
source share