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:Jump to 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...5 Replies
Project ID:
N/A
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
Does this mean I can't run any react apps?
you can, you just don't run a development server, and we will get back to the solution after I eat
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