문제

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!

도움이 되었습니까?

해결책

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

enter image description here

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

enter image description here

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top