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.

bundler chokes on large files

See original GitHub issue

Do you want to request a feature or report a bug? bug

What is the current behavior? Trying to require json files that are large, or even lots of small ones, causes bundler to choke without really reporting anything (stuck at X%). By large, I mean only a few megabytes. By lots of small ones, I mean like 10 jsons of 800kb each (trying to break the large file into small chunks).

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test. import bigJson from './big.json'

What is the expected behavior? Bundler has no problem importing big json.

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system. metro 0.28.0, node 9.5.0, yarn 1.5.1, osx sierra

See #111 and #123 for other reports of the same problem, but issues were closed without resolution.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
ddeathcommented, Oct 10, 2018

@rafeca and what about the support for large js files? When can we expect that to be working in RN? On RN 0.57.1 the big js files are still not working. Any ETA on this?

Thank you

2reactions
rafecacommented, Apr 10, 2018

Hi @roesneb, unfortunately due to the different release cycles between metro and React Native, the fix has not reached RN stable yet. Good news is that the fix is going to be in the upcoming 0.56 version 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's The Best Way to Handle Extremely Large (1GB+) Text ...
Solution 2: Split the Large File into Smaller Chunks. If your text editor can't open a 2GB text file, you can split it...
Read more >
GIT > 20k new files chokes VSCode UI, "Too many active ...
A good strategy for large amount of files in VS Code is to compartmentalize each folder and commit separately as stated by Lasse....
Read more >
Many small files vs fewer larger files: impact on bundle size ...
There are really two separate, but closely related questions here. First is the question about bundle size, and the second is about the...
Read more >
Ways to Email Large Files - Hostway
If you try to email them as they are, your email client will choke. We've all sat there waiting as a large file...
Read more >
How abysmal SMB performance can choke networked backups
Time Machine then encountered a couple of very large files of more than 12 GB each, and the transfer rate increased until just...
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