A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/krampstudio/grunt-jsdoc/issues/4 below:

Cannot call method 'split' of undefined · Issue #4 · krampstudio/grunt-jsdoc · GitHub

I'am not sure is it a bug, But when I run jsdoc task I got:

->./node_modules/.bin/grunt jsdoc
Running "jsdoc:dist" (jsdoc) task

TypeError: Cannot call method 'split' of undefined
    at module.exports.jsDocLookup (/home/nick/dev/ged/www/ged.js/node_modules/grunt-jsdoc-plugin/tasks/jsdoc-plugin.js:69:19)
    at Object.registerJsdocTask (/home/nick/dev/ged/www/ged.js/node_modules/grunt-jsdoc-plugin/tasks/jsdoc-plugin.js:83:11)
    at Object.task.registerMultiTask.thisTask (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/grunt/task.js:109:15)
    at Object.task.registerTask.thisTask.fn (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/grunt/task.js:58:16)
    at Task.<anonymous> (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/util/task.js:343:36)
    at Task.<anonymous> (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/util/task.js:319:9)
    at Task.<anonymous> (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/util/task.js:346:11)
    at Task.start (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/util/task.js:359:5)
    at Object.grunt.tasks (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/grunt.js:143:8)
    at Object.module.exports [as cli] (/home/nick/dev/ged/www/ged.js/node_modules/grunt/lib/grunt/cli.js:36:9)

The reason is that nodePath is undefined in jsDocLookup function in tasks/jsdoc-plugin.js

So if I run task as

->NODE_PATH=`which node` ./node_modules/.bin/grunt jsdoc

everything seems ok


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4