Failure to record
- about
react + typescript
Project updatedependencies
Or updateyarn
There are problems that can’t be solved
steps
- First, create the project
npx create-react-app try01 --template typescript
- Step 2: Release
webpack
configurationcd try01 && npm run eject
- Step three, use
ncu
Upgrade all Dependenciesnpx npm-check-udpates -u
- The fourth step is to
yarn
Upgrade to 2.xyarn set version berry
- Step five, install the dependencies
yarn
- Step 6: Start the project – errors are already being reported
yarn start
End
- It’s over. We can’t solve it. Move on to the next plan
New Start
- Skip the fourth step. The YARN version will not be upgraded
Yarn v1.22
The version is upgraded using NCU- Solution: Enter
webpack.config.js
To findnew TerserPlugin
Delete rowssourceMap: shouldUseSourceMap,
Can be
-
Ongoing problem solving… Infinite loop problem solving…
-
Stuck in a rut…