2

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

enter image description here

1
  • Please verify that each step was followed carefully, and restart your IDE, your computer. Commented Sep 20, 2017 at 20:58

2 Answers 2

5

Please check what JS version is chosen in Preferences/Settings | Languages&Frameworks | JavaScript.

Arrow functions are supported only since ECMAScript 6.

Sign up to request clarification or add additional context in comments.

2 Comments

Please provide a screenshot of Preferences/Settings | Languages&Frameworks | JavaScript. Note that you should look in Settings and not Default settings.
Oksana - Thanks - i got it - turn out ECMAScript 6 was installed by not defined - thanks for your time.
0

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

enter image description here

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 :)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.