I\'m building a project using WebStorm 2016.2.2. I use version 6.6.0 of Node.js. I have set the JavaScript version to ES6, but I get \"unexpected token\" errors for both
Node.js supports CommonJS modules, however support for ECMAScript modules is currently being designed.
In the meantime, you'll have to use Babel to transform ECMAScript modules to CommonJS. Try using a minimal preset for Node.js builds, like babel-preset-node6.