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

swagger-jsdoc doesn't work on node 0.10, as of release 1.2.0 #16

Closed
tijszwinkels opened this issue Feb 29, 2016 · 0 comments
Closed

swagger-jsdoc doesn't work on node 0.10, as of release 1.2.0 #16

tijszwinkels opened this issue Feb 29, 2016 · 0 comments

Comments

@tijszwinkels
Copy link

I get this error when using the new swagger-jsdoc release on node.js v0.10.25, which is the default node.js install for the current Ubuntu LTS release.

I believe this is related to swagger-jsdoc using path.parse, which has become available in node 0.12.

Upgrading to node.js 0.12 or newer solves the issue, as does downgrading to swagger-jsdoc 1.1.2.

zoek-werkplek-api-0 (err): TypeError: Object #<Object> has no method 'parse'
zoek-werkplek-api-0 (err):     at parseApiFile (/opt/build/microservices/zoek-werkplek-api/node_modules/swagger-jsdoc/lib/index.js:23:18)
zoek-werkplek-api-0 (err):     at module.exports (/opt/build/microservices/zoek-werkplek-api/node_modules/swagger-jsdoc/lib/index.js:158:17)
tijszwinkels added a commit to tijszwinkels/swagger-jsdoc that referenced this issue Feb 29, 2016
…c, which don't work on older versions of node.js. Solves Surnet#16.

Please note that to prevent problems, swagger-jsdoc 1.2.0 needs to be removed from the npmjs repository as well.
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

1 participant