question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Packager is extremely slow

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ismdcfcommented, Sep 5, 2016

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.

0reactions
MattyK14commented, Aug 15, 2017

@ismdcf unfortunately not, I check the watch-list every time. It’s consistently only when running Android though, but not every time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packager very slow on first run · Issue #11457
Yeah, it is known that the packager is slower when it is run for the first time, because it has to do a...
Read more >
NuGet Package Manager slow on a large solution for various ...
This is still an issue and very problematic. Updating or Uninstalling packages on solutions with many projects is extremely slow - sometimes can...
Read more >
ios - React Native - Packager very slow
I have a question about speeding up the dev process from react native. If I run react-native run-ios in the project root via...
Read more >
SSIS task running very slow - Microsoft Q&A
In addition, have you tried to re-build a package and design the package to see if it is an occasional issue? 0 Votes...
Read more >
Slow package fetching
Hello, I've trying to install some packages with pkg install, but the process is too slow today. How can I change the source?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found