Intellij Idea Ecmascript Harmony modules syntax

萝らか妹 提交于 2021-02-07 06:27:05

问题


Im using Intellij Idea for some ES Harmony app. With modules syntax I want my IDE to do not highlight this as errors:

import $ from "jquery";

I have turned ES Harmony support in project settings, but it does not help.

Thanks!


回答1:


In case somebody here is still experiencing Issues with ECMAScript 6, you have to enable it in IntelliJ.

and after activating ecmascript, set it as JavaScript Language Version:




回答2:


Try an EAP version, it technically has support but it is not currently working for me.



来源:https://stackoverflow.com/questions/21609025/intellij-idea-ecmascript-harmony-modules-syntax

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