Packager is extremely slow
See original GitHub issueI am running React Native version ^0.24.1
and am running this on OSX El Capitan version 10.11.4
(macbook pro 16GB). The command I am running to start the packager is npm start
. The packager is taking anywhere from 45 seconds to 90 seconds to build my project. I tested on a new project and it was still taking around 20 seconds to build. I have tried to reset cache and it didn’t help. Here is the output from the packager:
[3:26:00 PM] <START> Building Dependency Graph
[3:26:00 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot
React packager ready.
[3:26:48 PM] <END> Crawling File System (47872ms)
[3:26:48 PM] <START> Building in-memory fs for JavaScript
[3:26:48 PM] <END> Building in-memory fs for JavaScript (428ms)
[3:26:48 PM] <START> Building in-memory fs for Assets
[3:26:49 PM] <END> Building in-memory fs for Assets (227ms)
[3:26:49 PM] <START> Building Haste Map
[3:26:49 PM] <START> Building (deprecated) Asset Map
[3:26:49 PM] <END> Building (deprecated) Asset Map (79ms)
[3:26:49 PM] <END> Building Haste Map (196ms)
[3:26:49 PM] <END> Building Dependency Graph (48733ms)
This used to be running pretty quickly for me but now it’s taking forever for the initial load. Once that initial load is done it recompiles much faster and building the bundle is really fast too. It seems like something is hung up on my system and im not sure what to check for. Another computer running this project does not take long to build the project. Looking for any suggestions on things to try.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Upgraded react from 23.1 -> 25.1 and now react packager takes around 6 minutes to start. and doing a release build takes around 12mins. Upgraded watchman to 4.6.0 which fixed the issue and after a pc restart same issue persists for the first run . @ide any guesses on what might be reason for this.
@ismdcf unfortunately not, I check the
watch-list
every time. It’s consistently only when running Android though, but not every time.