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