Hi,
I am trying to bundle an expo app for development, using exp start.
The app contains a lot of static assets, primarily animations ~250 MB. When I am trying to bundle the app, I encounter the following error:
[18:13:23] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[18:13:23] 1: 00007FF662D79055
[18:13:23] 2: 00007FF662D52FE6
[18:13:23] 3: 00007FF662D538C0
[18:13:23] 4: 00007FF6631A71DE
[18:13:23] 5: 00007FF6631A7113
[18:13:23] 6: 00007FF66321C004
[18:13:23] 7: 00007FF663219DBA
[18:13:23] 8: 00007FF663055D0C
[18:13:23] 9: 00007FF663001599
[18:13:23] 10: 00007FF662FF28EB
[18:13:23] 11: 00007FF6631C1BA4
[18:13:23] 12: 00007FF662D3DBFA
[18:13:23] 13: 00000356A5084780
Building JavaScript bundle [====================================================================================================] 100%
Stopping packager...
Packager stopped.
I see that previous solutions for RN have involved increasing the heap memory using the command:
https://github.com /facebook/react-native/issues/12686
node --expose-gc --max_old_space_size=4096 ./node_modules/react-native/local-cli/cli.js bundle --entry-file ./index.ios.js --platform ios --dev false --bundle-output "ios/main.jsbundle" --assets-dest "ios" --reset-cache
However, I have not found a working solution for expo.
Any ideas?