mozart-mvc

How do I resolve type error this.merge is not a function trying to run Mozart app?

爷,独闯天下 提交于 2019-12-06 09:32:31
I'm trying to start a Mozart app, but nothing is rendering and I'm getting the error... TypeError: this.merge is not a function helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; Nothing obviously related has changed - ie. haven't changed the templates etc so it's hard to see what's wrong. Have tried an npm install and re-run to no avail. Anyone hit this problem? It sounds like the version of Handlebars used to precompile your templates is different to the version actually running on your page. Specifically, this.merge was added in Handlebars 1.0.0 final, so if your page is