gulp-help icon indicating copy to clipboard operation
gulp-help copied to clipboard

TypeError: Cannot read property 'help' of undefined

Open blacksmoke26 opened this issue 7 years ago • 7 comments

Error found:

> gulp
G:\WebData\wwwroot\someweb\node_modules\gulp-help\index.js:81
    task = gulp.tasks[name];
                     ^
TypeError: Cannot read property 'help' of undefined
    at Gulp.gulp.task (G:\WebData\wwwroot\someweb\node_modules\gulp-help\index.js:81:22)
    at module.exports (G:\WebData\wwwroot\someweb\node_modules\gulp-help\index.js:97:8)
    at Object.<anonymous> (G:\WebData\wwwroot\someweb\gulpfile.js:11:29)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)```

blacksmoke26 avatar Feb 15 '18 21:02 blacksmoke26

Are you using Gulp v4 or Gulp v3?

Because the master-branch only works with Gulp V3

Enkrod avatar Feb 28 '18 11:02 Enkrod

oh, am using Gulp v4! Are you going to fix for V3?

Pulling V3 is not possible ATM, so npm update is messing up everything.

blacksmoke26 avatar Mar 09 '18 21:03 blacksmoke26

Install gulp-help via npm install github:chmontgomery/gulp-help#gulp4

Sadly I cannot fix anything because this is not my project, I am only some guy who had the same problem as you.

In the long run gulp-help should be replaced by gulp -T or gulp --tasks-simple the main difference right now is that gulp --tasks-simple does not support descriptions.

Enkrod avatar Mar 20 '18 10:03 Enkrod

So basically gulp has become garbage, because it does not work with newer node versions in V3 and if you upgrade to V4 other stuff, like this is not working and broken (when I remove gulp-help require, it continues failing on other sides).

akomm avatar Oct 01 '20 09:10 akomm

Any solution to gulp issue above because I am experiencing the same issue

fbolaji avatar Feb 10 '21 16:02 fbolaji

Yeah this is jacked. Gulp is trash.

CyberSecDemon avatar May 08 '21 23:05 CyberSecDemon

For anyone else still trying to figure it out, it looks like there is a temporary package version of this package that works with gulp4. Eventually they should make gulp --task-simple work for this instead (Enkrod, above), but it doesn't appear to be working yet. Here is the link: https://www.npmjs.com/package/gulp-help-four

bdbowen avatar Apr 15 '22 02:04 bdbowen