reactjs - Create-react-app:实验性语法“classProperties”当前未启用
问题描述
我正在使用 create-react-app 并且不想弹出。有没有其他方法可以解决这个问题?
class SlidingUpPanel extends React.Component {
static propTypes = {
^
visible: PropTypes.bool,
height: PropTypes.number, draggableRange: PropTypes.shape({
Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
已经安装好@babel/plugin-proposal-class-properties
了!但是如何在不弹出的情况下解决这个问题?
解决方案
推荐阅读
- nuget - 为什么 MSTest.TestAdapter 将其 DLL 添加到我的 NuGet 包中?
- typescript - Apollo GraphQL 服务器 + TypeScript
- python - 即使 AssertionError 也导出 pytest 结果
- c++ - 如何获取崩溃的 DLL 的堆栈跟踪?
- mysql - 在同一个表中通过子查询删除教义
- amazon-web-services - 如何在不导致内部读取完整数据的情况下扫描 DynamoDB 主键?
- node.js - 我正在尝试将我的电子应用程序变成 Windows 便携版
- vue.js - 插槽、模式和 $emit 动作 - Vue.js 2
- java - 如何使用注解参数优先级创新方法
- r - 如何使用 R 将数据帧转换为 JSON 数组