shannonmoeller / handlebars-wax

The missing Handlebars API for data, partials, helpers, and decorators.
http://npm.im/handlebars-wax
MIT License
40 stars 9 forks source link

Upgraded to handlebars 4.6.0 and now I get an error #15

Closed scottlet closed 4 years ago

scottlet commented 4 years ago

"TypeError helper.apply is not a function"

I'm using handlebars-wax via gulp-hb to build a static site - this has been working fine for a couple of years but the upgrade of handlebars broke the build.

"access to prototype properties is forbidden completely by default, specific properties or methods can be allow via runtime-options. See #1633 for details."

https://github.com/wycats/handlebars.js/blob/master/release-notes.md - it might be a flag needs to be set now. Happy to try and fix and issue a PR if you have no time.

scottlet commented 4 years ago

The latest handlebars release seems to have fixed this!