R
Railway15mo ago
MATX

system ran out of memory

Can someone help me? When I try to run my react app i get this error message.
[email protected] start

react-scripts start
 Starting the development server...  The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9 on the process. 
[email protected] start
Solution:
here is an example create-react-app, it uses caddy to serve your app, this will use sub 20mb of memory https://github.com/brody192/create-react-app-starter all you should need to do is copy the nixpacks.toml and Caddyfile files into your project...
Jump to solution
5 Replies
Percy
Percy15mo ago
Project ID: N/A
Brody
Brody15mo ago
it is because you are running a extremely resource heavy development server on railway, you never want to do that, for multiple reasons, one of those reasons you just found out
MATX
MATX15mo ago
Does this mean I can't run any react apps?
Brody
Brody15mo ago
you can, you just don't run a development server, and we will get back to the solution after I eat
Solution
Brody
Brody15mo ago
here is an example create-react-app, it uses caddy to serve your app, this will use sub 20mb of memory https://github.com/brody192/create-react-app-starter all you should need to do is copy the nixpacks.toml and Caddyfile files into your project
Want results from more Discord servers?
Add your server