-
Notifications
You must be signed in to change notification settings - Fork 83
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
"Cannot read property 'split' of undefined" error #136
Comments
The configuration of Gruntfile is jsdoc: {
all: {
src: ['package.json', 'README.md', 'lib/**/*.js', 'test/*.js'],
dest: 'doc/jsdoc'
}
}, |
What's your OS?
thanks |
Ubuntu 15.04
nodePath /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript Just before the paths array.
Running "jsdoc:all" (jsdoc) task
[D] Task source: /home/piranna/workspace/kurento-utils-js/node_modules/grunt-jsdoc/tasks/jsdoc-plugin.js
nodePath /usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
[D] Using jsdoc from : node_modules/grunt-jsdoc/node_modules/.bin/jsdoc
[D] Running : node_modules/grunt-jsdoc/node_modules/.bin/jsdoc --destination doc/jsdoc --private package.json README.md lib/WebRtcPeer.js lib/browser.js lib/index.js test/WebRtcPeer.js test/_common.js
Fatal error: Arguments to path.resolve must be strings
You are welcome :-) |
Some of my colleages that don't have the package.json entry on the jsdoc are having the same problem, too. |
Could you also give me the value of |
//check first the base path into the cwd
paths = [
__dirname + '/../../node_modules/.bin/jsdoc',
__dirname + '/../../node_modules/jsdoc/jsdoc.js'
]; I didn't touched it, anyway...
No, I don't, I've used the one that grunt-jsdoc installed.
Ok, thank you. You could be able to reproduce by downloading the project code and upgrading the grunt-jsdoc dependency by hand. |
:) I meant the value of the variable at runtime... but anyway with your project I'll try to reproduce the issue. |
For now you can make it work by updating your config: jsdoc: {
all: {
src: ['README.md', 'lib/**/*.js', 'test/*.js'],
options : {
destination: 'doc/jsdoc'
}
}
}, |
0.6.7 should fix it anyway |
Yes, 0.6.7 has fixed it, thank you for doing it so quick! :-) |
Cool! |
👍 |
With grunt-jsdoc 0.6.6 I'm getting the next error:
At the same time, executing jsdoc 3.3.0 (the one installed as dependency of grunt-jsdoc) directly it works correctly:
The text was updated successfully, but these errors were encountered: