Open mstock opened 8 years ago
I faced with the same issue:
Running "jsdoc-ng:main" (jsdoc-ng) task
NOM DESC Triangle
Warning: Arguments to path.join must be strings Use --force to continue.
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Object.exports.getModulePath (/var/www/html/projects/triangle/grunt/node_modules/grunt-jsdoc-ng/node_modules/jsdoc/lib/jsdoc/util/runtime.js:89:17)
at Object.
I changed jsdoc version in package.json but it did not fixed the bug. Thank you in advance.
Same bad result... : (
Warning: Arguments to path.join must be strings Use --force to continue.
It seems that the latest JSDoc version (3.4.0 at the time of this writing) had an incompatible API change, which results in an exception when generating the documentation (I noticed this after removing
node_modules
in a project and reinstalling everything usingnpm install
, which resulted in broken documentation generation):'Downgrading'
jsdoc
to3.3.3
inpackage.json
'fixes' this issue (i.e. replacing^3.3.0-alpha10
with3.3.3
). According to the changelog, "JSDoc'sapp
andenv
global variables are now deprecated. Avoid using theapp
global. Use thejsdoc/env
module instead of theenv
global.".