Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.merge is undefined #116

Closed
willdady opened this issue Sep 9, 2014 · 5 comments
Closed

this.merge is undefined #116

willdady opened this issue Sep 9, 2014 · 5 comments

Comments

@willdady
Copy link

willdady commented Sep 9, 2014

When attempting to use a compiled template I'm getting an "undefined function" error. The culprit appears to be this.merge.

helpers = this.merge(helpers, Handlebars.helpers);

This issue is almost identical to #55. I'm using v2.0.0 of the runtime delivered via bower.

@antonjb
Copy link

antonjb commented Sep 15, 2014

I was running into this myself but swapped the runtime version to 1.3.0 inside the node_modules that come with grunt-contrib-handlebars. So, this one: grunt-contrib-handlebars/node_modules/handlebars/dist/handlebars.runtime.js.

@willdady
Copy link
Author

@antonjb And I assume it worked?

I've given up for now. I incorrectly assumed this would just work with whatever version of the runtime I was using. I guess we have to wait until 2.0 support is added as discussed in #100.

@antonjb
Copy link

antonjb commented Sep 15, 2014

Oh, yes, sorry, I should've added that using that runtime did solve the problem for me.

@stephanebachelier
Copy link
Contributor

I think it's related to #103 which in fact is related to handlebars-lang/handlebars.js#547 (comment)

What handlebars version were you using ? Maybe a problem between compiled and runtime versions ?

@willdady
Copy link
Author

willdady commented Nov 2, 2014

@stephanebachelier As mentioned. I believe it was a mismatch between the runtime version and the version grunt-contrib-handlebars was using.

Will close this issue.

@willdady willdady closed this as completed Nov 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants