编译失败:添加@ babel / plugin-proposal-class-properties

时间:2019-10-08 04:18:42

标签: plugins babel

我已经在React项目中安装了一个模块来支持p5.js。根据需要安装了plugin-proposal-class-properties,它位于我的babel文件夹中。然后,我创建了.babelrc并放入

{
  "plugins": [["@babel/plugin-proposal-class-properties", { "loose": true }]]
}

在那里。但是,它仍然无法正常工作。我的.babbelrc文件在src目录中。

enter image description here

0 个答案:

没有答案