Intellij Idea Ecmascript和声模块语法 [英] Intellij Idea Ecmascript Harmony modules syntax

查看:43
本文介绍了Intellij Idea Ecmascript和声模块语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Intellij Idea用于某些ES Harmony应用程序.使用

并激活ecmascript后,将其设置为JavaScript语言版本:

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.

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

这篇关于Intellij Idea Ecmascript和声模块语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆