不足的Ecmascript-6 / es6支持enide / eclipse“意外的令牌”用于进出口 [英] Inadequate Ecmascript-6 / es6 support for enide / eclipse "Unexpected token" for import / export
问题描述
我已经安装了支持es6的enide studio 2015,所以这个错误不应该出现?
我如何摆脱这些错误讯息?
I've installed enide studio 2015 that supports es6, so this error shouldn't appear? How do I get rid of these error messages?
推荐答案
从#node.js
虽然ES6提供了导入/导出,目前,在任何地方,
没有任何,因为加载器规范未完成(
https://github.com/whatwg/loader )。 ES6模块还不算什么;
他们还不存在。 !babel简单地将导入/导出到
require
,一旦加载器
完成就不能保证工作。现在使用CommonJS模块
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
这篇关于不足的Ecmascript-6 / es6支持enide / eclipse“意外的令牌”用于进出口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!