您的位置:首页 > Web前端 > React

SyntaxError: D:\react_work\src\component\event.jsx: Support for the experimental syntax 'classProper

2019-06-03 13:27 2096 查看
  • 遇到此种错误,解决方法如下:
npm i -D @babel/plugin-proposal-class-properties
  • .babelrc
    plugins中加一项:
'@babel/plugin-proposal-class-properties'
  • 问题解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐