Syntax error - Support for the experimental syntax 'decorators-legacy' isn't currently enabled
问题 I'm trying to build JS react project with decorators. My .babelrc looks like this: { "presets": [ "@babel/preset-env", "@babel/preset-react", ], "plugins": [ "@babel/plugin-transform-runtime", "@babel/plugin-transform-object-assign", [ "@babel/plugin-proposal-decorators", { "legacy": true } ], ["@babel/plugin-proposal-class-properties", { "loose": true }] ] } Adding @babel/plugin-proposal-decorators problems appears again. I am using babel 7, webpack 4 and react 16.5 webpack.config.js: const