Search code examples
gulpwebstorm

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


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.


Solution

  • 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