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

JS error on run—Object #<Object> has no method 'merge' #158

Closed
jameswomack opened this issue Jun 3, 2013 · 6 comments
Closed

JS error on run—Object #<Object> has no method 'merge' #158

jameswomack opened this issue Jun 3, 2013 · 6 comments

Comments

@jameswomack
Copy link

I'm able to setup and run the Strut server, but loading the webpage results in an immediate error:

Uncaught TypeError: Object #<Object> has no method 'merge'  - compiled-templates.js:711

This is the case in both Chrome & Firefox.

Some env stats:
Mac OS X 10.8
Ruby 2
Node 0.10.5

@sainejob
Copy link

sainejob commented Jun 6, 2013

Check out this thread: handlebars-lang/handlebars.js#547

@sainejob
Copy link

sainejob commented Jun 6, 2013

This work for me FROM Strut root dir:
$> cd node_modules/grunt-contrib-handlebars/
$> npm install
$> npm shrinkwrap
$> vi npm-shrinkwrap.json -- change 'handlebars' dep version to 1.0.10 and save
$> npm install
$> cd ..
$> grunt server

tantaman added a commit that referenced this issue Jun 24, 2013
@tantaman
Copy link
Owner

@sainejob thanks for doing the research on this.

@tantaman
Copy link
Owner

Should have been closed with commit e7c462c
closing now.

@adamwaite
Copy link

This is still happening with grunt-contrib-handlebars 0.6.0 and handlebars.runtime.amd 1.1.2 (both latest versions, in npm and bower) .

I can fix by using the command line utility for each template but it's quite laborious, i'd rather this be automated with grunt.

@tantaman
Copy link
Owner

tantaman commented Dec 4, 2013

How did you end up running with grunt-contrib-handlebars 0.6.0? Strut's package.json specifies ~0.5. Is it possible that npm is pulling in some global installation of grunt-contrib-handlebars instead of the local one?

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

4 participants