Create-react-app: Why is it taking so long to start my app?

Created on 14 Jun 2017  路  8Comments  路  Source: facebook/create-react-app

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

yes

Description

My app startup time during development using react-scripts start takes an excessive amount of time (> 60s). Also recompiling during development takes a while.

Expected behavior

I would expect the initial build to be under 10s

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven鈥檛 ejected): [email protected]
  2. node -v: v8.0.0
  3. npm -v: 5.0.0

Then, specify:

  1. Operating system: macOS Sierra (version 10.12.5)
  2. Browser and version: Chrome 58.0.3029.110 (64-bit)
question

Most helpful comment

Yeah I should've added that it's perfectly normal. I have an application that takes a long time to boot, too.

We are looking into improving this, tho!

All 8 comments

Do you have any antivirus program running in the background? I had to disable the real-time file system scan of my anti-virus program which sped up my build and start times.

Can you please provide a project that this reproduces in? We'd love to run some profiling.

screen shot 2017-06-19 at 10 22 51 am
Here is a simplified version of the app with only a few of the dependencies that we are including and a few files. It is still taking 36s for initial startup (maybe that is normal?)
https://github.com/tgreen7/create-react-app-slow

30 seconds is a normal startup time.

Yeah I should've added that it's perfectly normal. I have an application that takes a long time to boot, too.

We are looking into improving this, tho!

Alright thanks for the feedback. Just wanted to make sure I didn't have something messing up.

harshal@harshal-Inspiron-3542:~/react-Native/AwesomeProject$ npm start

[email protected] start /home/harshal/react-Native/AwesomeProject
react-native-scripts start

00:25:53: Starting packager...

its taking too long to start...

This project is not related to React Native.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dualcnhq picture dualcnhq  路  3Comments

adrice727 picture adrice727  路  3Comments

oltsa picture oltsa  路  3Comments

JimmyLv picture JimmyLv  路  3Comments

fson picture fson  路  3Comments