I followed the steps here to configure code completion and other stuff in WebStorm but I'm still getting the following syntax errors.
How can I resolve this?
By changing 'JavaScript language version' (Settings/Languages & Frameworks/JavaScript
) accordingly, to either 'ECMASCript 6
' or 'JSX Harmony
'. BTW, WebStorm can do it for you: hit Alt+Enter
on the highlighted statement, choose 'Change JavaScript version to ECMASCript 6' from the popup