Packager TimeoutError
See original GitHub issueHello there!
I’ve been using rn-globabalize for a while, and it worked fine, but suddenly I can’t start my app, and the react native packager is throwing this error:
Error: TimeoutError: transforming /Users/michael/dev/finances_pro/node_modules/react-native-globalize/lib/cldr.json took longer than 301 seconds.
You can adjust timeout via the 'transformTimeoutInterval' option
at index.js:101:30
at tryCallOne (/Users/michael/dev/finances_pro/node_modules/promise/lib/core.js:37:12)
at /Users/michael/dev/finances_pro/node_modules/promise/lib/core.js:123:15
at flush (/Users/michael/dev/finances_pro/node_modules/asap/raw.js:50:29)
at _combinedTickCallback (node.js:376:9)
at process._tickCallback (node.js:407:11)
I’ve changed nothing about the package, tried to update it but no lucky. When I removed all references to it in my code, the package runs fine.
For reference, I’m using React Native 0.25.1
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Collection of futures gets TimeoutError #4831 - GitHub
What happened: Possibly related to #2880. I'm using client.persist to execute delayed tasks (see rough format in the MCVE).
Read more >Trying to install selenium package in Pycharm (Python and ...
ran the command:: pip install -U Selenium and getting timeout error message. Retrying (Retry(total=4, connect=None, read=None, ...
Read more >multiprocessing — Process-based parallelism — Python 3.11 ...
multiprocessing is a package that supports spawning processes using an API ... from multiprocessing import Pool, TimeoutError import time import os def ...
Read more >Package compilation timeout error. - Oracle Communities
Dears, One of my custom apps package compilation is failing with "ORA-04021: timeout occurred while waiting to lock object "
Read more >sfdx:force:package:installed:list is throwing TIMEOUT error
Summary force:installed:list command is throwing time out error as Your query request was running for too long. Steps To Reproduce: 1.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Easiest way is to just fork this repo and tweak
gulpfile.js
to suit your needs. There’s an array of languages and currencies near the top that control what gets included in the output. Then just rungulp cldr
and the resulting file will be placed insrc/cldr.json
. You can just copy that to your project at that point.Seems like the packager has an issue with large files. Will keep an eye on it. Thanks for reporting this!
It worked perfectly. I narrowed to two languages and four currencies, and now it’s just ~200kb. Works like a charm. Thank you!