Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you resolve references to gulp.src().pipe() in webstorm 10

Tags:

gulp

webstorm

This is a tooling question, so I'm not sure if it's appropriate for stack overflow. I'm using gulp in WebStorm 10 to concatenate my .js files into a dist folder. In my gulpfile.js, WebStorm is warning me that gulp.src(...).pipe() can not be resolved.

enter image description here

I've added the gulp-util typescript community map file to the libraries list in settings, which is the only place a function called pipe() exists that I can find in node_modules.

enter image description here

I've also confirmed that the gulp-util library is being used to try to resolve references in gulpfile.js. It's the only warning I have left in my app and I'd sure love to get it resolved.

like image 495
sonicblis Avatar asked Jul 24 '15 20:07

sonicblis


2 Answers

I posted a similar question on the Webstorm site and got the following answer:

to resolve pipe open ’Settings | 'languages & Frameworks | JavaScript | Libraries’ and choose ’Node.js Core Modules’

https://disqus.com/home/discussion/jetbrains/using_gulp_task_runner/?utm_source=reply&utm_medium=email&utm_content=read_more#comment-2240193852

like image 53
jbhelfrich Avatar answered Nov 08 '22 21:11

jbhelfrich


In the end of 2019 faced the same issue but in PHPStorm.

  • i got the "Unresolved function or method pipe()" and
  • the "Unresolved function or method require()" error messages in PHPStorm.

Downloading the @types/gulp library in PHPStorm resolved both issues. enter image description here

like image 1
cofirazak Avatar answered Nov 08 '22 21:11

cofirazak