a year ago
Hi Team,
Finally deployed the my React Js front-end code
pls check the bellow error, what can i do ?
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xaea8e8 node::Abort() [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
2: 0x9ad387 [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
3: 0xd019e0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, bool) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
4: 0xd01dbb v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, bool) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
5: 0xef9485 [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
6: 0xef9571 [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
7: 0xf0e8a2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
8: 0xf0f46a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
9: 0xee9b2a v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
10: 0xeeac44 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
11: 0xeca17d v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
12: 0x12d52e0 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate) [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
13: 0x17066b9 [/nix/store/bzi3zjxiblnf4gzfhsn2i96rl07kxi5n-nodejs-18.20.5/bin/node]
npm warn config production Use --omit=dev instead.
> ⓘ Deployment information is only viewable by project members and Railway employees.
1 Replies
a year ago
Hello,
Very likely the crash was caused by the 500 MB Memory limit on the Trial plan.
I see you have upgraded to Hobby to remedy that, but an issue remains, you are running a development server.
https://github.com/brody192/create-react-app-starter
Please copy the nixpacks.toml and Caddyfile from this repo into yours.