Inadequate Ecmascript-6 / es6 support for enide / eclipse “Unexpected token” for import / export

爷,独闯天下 提交于 2019-12-13 23:42:34

问题


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



来源:https://stackoverflow.com/questions/42491567/inadequate-ecmascript-6-es6-support-for-enide-eclipse-unexpected-token-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!