Grunt syntax Gruntfile.js not recognized by Webstorm

Not all of the Grunt-related syntax in my Gruntfile.js is recognized. For example:

grunt.initConfig <-- throws an error: Unresolved method or function initConfig()

The grunt command executes nonetheless, however, the "details"-link in the Grunt-explorer is dead.

Please see screenshot for details.

1
1 comment

please try installing grunt typings (.d.ts file) - this can be done in Preferences | Languages & Frameworks | JavaScript | Libraries: press Download..., type grunt in Download Libraries dialog to locate it.

see https://www.jetbrains.com/help/phpstorm/configuring-javascript-libraries.html#ws_jsconfigure_libraries_ts_definition_files

0

Please sign in to leave a comment.