jsdoc2md / jsdoc-to-markdown

Generate markdown documentation from jsdoc-annotated javascript
MIT License
1.69k stars 152 forks source link

Unable to load plugins #82

Closed vasyas closed 8 years ago

vasyas commented 8 years ago

Using jsdoc-parse@1.2.7

My jsdoc.conf.js:

{
  "plugins": ["node_modules/jsdoc-babel"],
  "babel": {
    "extensions": ["js", "es6", "jsx"],
    "presets": ["es2015", "stage-1", "react"],
    "plugins": ["transform-flow-strip-types", "babel-plugin-transform-decorators-legacy"]
  }
}

When running

jsdoc-parse -f src/index.js --conf jsdoc.conf.json

got error message

JSDOC_ERROR: ERROR: Unable to find the plugin "node_modules/jsdoc-babel"

jsdoc@3.4.0 works ok.

The same error with other jsdoc plugins (tested jsdoc-strip-async-await), so I beleive it's plugin-unrelated.

75lb commented 8 years ago

does it work if you use an absolute path to your plugin? e.g.

"plugins": ["/Users/me/somewhere/node_modules/jsdoc-babel"]
vasyas commented 8 years ago

No. And absolute version works ok with jsdoc.

75lb commented 8 years ago

i've traced this to a regression in jsdoc3, introduced by this commit.. jsdoc2md does not use jsdoc3@3.4.0, it uses a fork which tracks the master branch of jsdoc3.

This is fixed and released in v3.5.6 of jsdoc-75lb.. please reinstall jsdoc2md and try again.

75lb commented 8 years ago

if you still have problems, please re-open.

vasyas commented 8 years ago

Thanks, it has fixed my issue.