R
Railway9mo ago
Dadz

<--- JS stacktrace --->FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -

Why do i keep getting this error ? I'm on the Hobby Plan Project ID : 3aa4ba7e-f1f4-4c47-b0e7-16217119ad3e Thank You
No description
Solution:
https://github.com/brody192/create-react-app-starter copy the nixpacks.toml and Caddyfile from this repo into your project...
Jump to solution
17 Replies
Percy
Percy9mo ago
Project ID: 3aa4ba7e-f1f4-4c47-b0e7-16217119ad3e
Brody
Brody9mo ago
what kind of app
Dadz
DadzOP9mo ago
React with MUI
Brody
Brody9mo ago
whats MUI
Dadz
DadzOP9mo ago
Material UI
Brody
Brody9mo ago
how are you serving your react app? create react app?
Dadz
DadzOP9mo ago
Yes
Brody
Brody9mo ago
do you have any build or start commands set in the service settings? if so, remove them
Solution
Brody
Brody9mo ago
https://github.com/brody192/create-react-app-starter copy the nixpacks.toml and Caddyfile from this repo into your project
Dadz
DadzOP9mo ago
Just this one : CI=false npm run build. Ok did it
Brody
Brody9mo ago
set a service variable CI=false instead
Dadz
DadzOP9mo ago
Error: reading input file: open Caddyfile: no such file or directory
RUN caddy fmt --overwrite Caddyfile 35 | 36 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c caddy fmt --overwrite Caddyfile" did not complete successfully: exit code: 1
Brody
Brody9mo ago
did you copy both files, keeping the same filenames?
Dadz
DadzOP9mo ago
I thought so but it seems that my computer renamed CaddyFile to CaddyFile.txt that should solve the issue It worked! Can you tell me what the problems were?
Brody
Brody9mo ago
you where trying to a development server
Dadz
DadzOP9mo ago
Alright, so don't use react script when deploying and you should be good
Brody
Brody9mo ago
correct, react scripts has no way of running a production server
Want results from more Discord servers?
Add your server