V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
qhxin
V2EX  ›  PHP

PHPStorm 解析 jsx 文件时会有语法错误提示,怎么解决?

  •  
  •   qhxin · 2017-06-22 15:12:22 +08:00 · 1481 次点击
    这是一个创建于 2522 天前的主题,其中的信息可能已经有所发展或是发生改变。

    已经在 Setting->Languages->JavaScript 里面设置 language level 为了 JSX Harmony。

    但是在 class 的 constructor 里面写 super 会有红色下划线。。。

    class SearchTable extends Component {
        constructor(props) {
            super(props);
    
            this.state = {
                loading: false,
                table: {}
            };
        }
    }
    
    ywisax
        1
    ywisax  
       2017-06-25 20:58:17 +08:00
    webstorm 没这个问题。。。还是老实换吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1064 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:05 · PVG 03:05 · LAX 12:05 · JFK 15:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.