Reputation: 987
I can't configure PhpStorm to work with NodeJs syntax, I've followed This guide but for some reason it's not working - as you can see in the picture
Upvotes: 2
Views: 653
Reputation: 86
yes i know it is late, but i thought maybe somebody land on this page & this might help.
first make sure node is installed using node -v
command in terminal &
from File menu in phpstorm go to Settings -> Languages & Frameworks -> Node.js and NPM
make sure Coding assistance for Node.js is checked like in the picture above (a package may get installed automatically)
& if it didn't work, try right click among codes of the file & from the big menu that appears (the menu i can't take screenshot of!) go to the last item "Use JavaScript Library" & from its submenu select "Node.js Core"
best regards :)
Upvotes: 0
Reputation: 857
Please check what JS version is chosen in Preferences/Settings | Languages&Frameworks | JavaScript.
Arrow functions are supported only since ECMAScript 6.
Upvotes: 5