当我为我的react应用程序应用一个write a function时,我总是得到这个Support for the experimental syntax 'classProperties' isn't对于上下文,我使用Symfony作为后端,同时使用React作为前端。在this中,它说我需要在插件中为@babel/plugin-proposal-class-properties in <e
现在,在运行npm start之后,当我在package.json中添加某个依赖项时,会得到一个错误 Support for the experimental syntax 'classPropertiesAdd @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel我尝试
我一直在使用react.js,这是第一次发生这种情况,我正在开发一个用parcel-bundler设置的应用的前端,我在编写简单的jsx代码时遇到了这个问题。Support for the experimental syntax 'classProperties' isn't currently enabled (15:13): | ^
16 | console.log('hi
但是,当我将它作为npm包安装时,我会得到一个错误:Support for the experimental syntax 'classProperties' isn't currently enabled我试图将以下代码添加到npm包的package.json文件中: "@babel/plugin-proposal-class-properties": "^7.8.3"
prabhjotrai/temp/client-web/src/web-app-commons/HOC/OverlayWrapper.jsx: Support for the experimental syntax 'classProperties我尝试了所有与添加这个插件相关的东西(包括将@babel/plugin-proposal-class-properties添加为开发依赖项,并在babel配置中引用它),我认为它与有