i want use es6 in webstorm (node.js app) , got error while example use import etc
.
i go preferences ->language , change ecmascript6 , in addition right click , choose javascriptlibrary , choose ecma script 6, why errors ?
i use webstorm 2016.2
this error:
(function (exports, require, module, __filename, __dirname) { import {expect} 'chai'; ^^^^^^ syntaxerror: unexpected reserved word
update
this code i've used
import {expect} 'chai'; import path "path"; (function (exports, require, module, __filename, __dirname) { import {expect} 'chai';
Comments
Post a Comment