源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  Idea的js文件报错:Import declarations are not supported by current JavaScript version

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

分类: 文章 • 2023-01-05 23:54:35

首先,js文件报错如下图:

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

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

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

找到Languages&Frameworks下的JavaScript,把版本从默认的5.1改为6就好了

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

最后,apply、OK。报错就不会出现了

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

相关推荐

  • webStorm报错Import declarations are not supported by current JavaScript version
  • IDEA中的.VUE文件报错 Export declarations are not supported by current JavaScript version
  • Idea的js文件报错:Import declarations are not supported by current JavaScript version
  • 2019 webstorm报错:Import declarations are not supported by current JavaScript version
  • Import declarations are not supported by current JavaScript version 的JS版本问题
  • Idea的js文件报错:Import declarations are not supported by current JavaScript version
  • webStorm报错Import declarations are not supported by current Javascript version
  • redis密码配置
  • webStorm报错Import declarations are not supported by current Javascript version
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号