I've installed enide studio 2015 that supports es6, so this error shouldn't appear? How do I get rid of these error messages?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
From #node.js
While ES6 provides syntax for import/export, it currently does nothing, anywhere, because the loader spec is not finished ( https://github.com/whatwg/loader ). ES6 Modules are not yet a thing; they do not yet exist. !babel simply transpiles import/export to
require
, which is not guaranteed to work once the loader is finished. Use CommonJS modules for now