swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Doesn't build correctly against node v 0.10.1

Open quii opened this issue 13 years ago • 6 comments

I am running the latest version of node installed from brew.

npm install and the build step seem to work but I think it's generating JS which doesnt work as SwaggerUI throws an error in the js console:

Uncaught TypeError: Object # has no method 'merge'

quii avatar Jun 05 '13 15:06 quii

Since you mentioned you're mentioned latest, I assume you don't have any reason to not be running the latest version. The latest version on brew is 0.10.10 and it seems to be working fine for me.

brew update brew upgrade node

nizhu avatar Jun 06 '13 14:06 nizhu

I'm having the same issue, did anyone find a solution?

I updated to node version 0.10.10 and still have the same issue.

lenzenc avatar Jun 06 '13 20:06 lenzenc

Same here. Anyone have fixed the problem?

ventayol avatar Jun 07 '13 07:06 ventayol

I've found the solution to this problem.

What's broken is handlebar 1.0.12, some other projects have the same issue. If you are having this problem you can fix it changing package.json. Change: "handlebars": "~1.0.10" to "handlebars": "1.0.10"

More info: https://github.com/wycats/handlebars.js/issues/547

ventayol avatar Jun 07 '13 08:06 ventayol

Thanks ventayol, that did the trick.

lenzenc avatar Jun 10 '13 13:06 lenzenc

please reopen if still an issue

fehguy avatar Aug 02 '14 05:08 fehguy