Ritesh Ghorpade
Ritesh Ghorpade

Reputation: 41

Creating React apps using npx create-react-app is very slow , Is there any way to speed it up?

I am a new Developer trying to Learn React , so in this process I am creating multiple react projects So I have created react projects using npx create-react-app , so every time I create react app , it takes a long time create it , is there any way , to speed up the creation of react app using npx create-react-app, as I am creating lot of different apps for learning purposes

Upvotes: 2

Views: 1199

Answers (1)

Shyam
Shyam

Reputation: 1454

Issue is reported here and added to next milestone.

If you want temporary patch you can follow this comment

  1. Install patch-package https://www.npmjs.com/package/patch-package#set-up
  2. Open the webpack file: node_modules/react-scripts/config/webpack.config.js
  3. Add cache to the eslint plugin
new​ ​ESLintPlugin​(​{​
  ​cache​: ​true​,​
  ...
})
  1. Run the patch package script yarn patch-package react-scripts
  2. Normally run the app now.

Remove the patch later after fix.

Upvotes: 1

Related Questions