编程语言
首页 > 编程语言> > import declarations are not supported by current JavaScript version

import declarations are not supported by current JavaScript version

作者:互联网

Idea的js文件报错:Import declarations are not supported by current JavaScript version

报这个错原因是,vue用的es6的语法,解决的话也很简单,只需要把idea的javaScript的版本从默认的5.1改为6就好了

以下为解决方法:点击File里的Settings

标签:declarations,supported,current,version,报错,JavaScript
来源: https://www.cnblogs.com/userzf/p/16657340.html