Npm start reported an error

npm start error
prompt:

$npm start

Starting the development server.

Failed to compile.

. / src/routes/orders/AllPaidOrderListPage.js
Module build failed: TypeError: Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null
at Array.map ()

what is the problem and how to solve it?
guys, please take a look at ~ ~

.
Mar.31,2021

break change,transform-decorators-legacy caused by babel@7 upgrade does not need to be introduced
the

in .webpackrc.js
extraBabelPlugins: [
  'transform-decorators-legacy',
  ['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
]

transform-decorators-legacy to delete
details: Link description


. / src/routes/orders/AllPaidOrderListPage.js there is a type exception in this js.
see where the map method is written, and look at map .


there seem to be two solutions: delete the node_moduless folder and package_lock (if any), and then npm install, npm run lint; second: if there is a previous version, the fallback version is being written. If there is a better way, please share


Hello, I opened a react project today also reported this error, how to solve it!


Brother, how did you fill this hole? please tell me

Menu