create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

About deprecated packages

Open taiseiyo opened this issue 1 year ago • 1 comments

Abort problem

The babel-preset-react-app inside create-react-app references the following four packages as dependencies, but all of them are deprecated. We recommend that you change them to the recommended packages.

The solution I'm like

below for suggested packages to replace these packages with.

  • @babel/plugin-transform-class-properties
  • @babel/plugin-transform-numeric-separator instead.
  • @babel/plugin-transform-optional-chaining instead.
  • @babel/plugin-transform-private-methods instead.

I'm looking forward to your reply.

taiseiyo avatar Aug 21 '24 02:08 taiseiyo

Just stop using create-react-app. All you need is to run npm create vite@latest and use that. Vite is much faster than CRA ever was.

eslachance avatar Aug 26 '24 12:08 eslachance