Failure to record

  • aboutreact + typescriptProject updatedependenciesOr updateyarnThere are problems that can’t be solved

steps

  • First, create the projectnpx create-react-app try01 --template typescript
  • Step 2: Releasewebpackconfigurationcd try01 && npm run eject
  • Step three, usencuUpgrade all Dependenciesnpx npm-check-udpates -u
  • The fourth step is toyarnUpgrade to 2.xyarn set version berry

  • Step five, install the dependenciesyarn
  • Step 6: Start the project – errors are already being reportedyarn 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.22The version is upgraded using NCU
    • Solution: Enterwebpack.config.jsTo findnew TerserPluginDelete rowssourceMap: shouldUseSourceMap,Can be

  • Ongoing problem solving… Infinite loop problem solving…

  • Stuck in a rut…