For some reason WebStorm says that the global console
variable in javascript is unresolved. How can I resolve this?
I am using Node.js
the solution for WebStorm 6.* is to enable 'HTML' library in Settings/javascript/Libraries (same for WebStorm 7.0.1)
For version 8 and up the solution is to enable NodeJS Globals
library:
Settings > Javascript > Libraries
Solution for webstorm for NodeJS as of January 2017
Preferences -> Languages and Frameworks -> JavaScript -> Libraries -> Download -> TypeScript Community Stubs -> node -> Download and Install
This will remove the unresolved import console warning
For me worked to change Javascript Language Version to ECMAScript 6 in
File > Settings > Languages & Frameworks > Javascript
PhpStorm v.2017.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With