: Missing class properties transform. appears in react

problem description

in the self-built react+redux framework, this error occurs using the arrow function

the environmental background of the problems and what methods you have tried

this is my package.json
"babel-loader": "^ 7.1.2",
"babel-plugin-transform-class-properties": "^ 6.24.1",
"babel-plugin-transform-runtime": "^ 6.23.0",
"babel-preset-env": "^ 1.7.0",
"babel-preset-es2015": "^ 6.24.1",
"babel-preset-react": "^ 6.24.1",
"babel-preset-stage-0": "^ 6.24.1",
and corresponding .babelrc configuration
{

"presets": [
    "react",
    "stage-0",
    "env"
],
"plugins": [
    "transform-runtime",
    "transform-class-properties",
    [
        "import",
        {
            "libraryName": "antd",
            "style": "css"
        }
    ]
]

}

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Sep.30,2021

Lou Zhu, hello ~
try the order in
1 and presets : presets: ["env", "react", "stage-0"]
2, and plug-ins to @ babel/plugin-proposal-class-properties

.
Menu