问题描述
D:\client>yarn start
yarn run v1.12.3
$ react-app-rewired start
D:\client\config-overrides.js:3
config = injectBabelPlugin(["@babel/plugin-proposal-decorators", { legacy: true }], config);
^^^^^^
SyntaxError: Rest parameter may not have a default initializer
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:656:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
err