R
Railway10mo ago
MATX

system ran out of memory

Can someone help me? When I try to run my react app i get this error message.
tuya_react_frontend@0.1.0 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. 
tuya_react_frontend@0.1.0 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
Percy10mo ago
Project ID: N/A
Brody
Brody10mo 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
MATX10mo ago
Does this mean I can't run any react apps?
Brody
Brody10mo ago
you can, you just don't run a development server, and we will get back to the solution after I eat
Solution
Brody
Brody10mo 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