babel reports syntax error for...What is the reason and how to modify it
You need to install the npm package babel-plugin-transform-object-rest-spread, and then add transform-object-rest-spread to your babel configuration plugins node
babel-plugin-transform-object-rest-spread
transform-object-rest-spread
You need to install the npm package
babel-plugin-transform-object-rest-spread
, and then addtransform-object-rest-spread
to your babel configuration plugins node