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)