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

2 years ago

Why do i keep getting this error ?

I'm on the Hobby Plan

Project ID : 3aa4ba7e-f1f4-4c47-b0e7-16217119ad3e

Thank You

19 Replies

brody
EMPLOYEE

2 years ago

what kind of app


dvdmnc
TRIALOP

2 years ago

React with MUI


brody
EMPLOYEE

2 years ago

whats MUI


dvdmnc
TRIALOP

2 years ago

Material UI


brody
EMPLOYEE

2 years ago

how are you serving your react app?


brody
EMPLOYEE

2 years ago

create react app?


dvdmnc
TRIALOP

2 years ago

Yes


brody
EMPLOYEE

2 years ago

do you have any build or start commands set in the service settings? if so, remove them


brody
EMPLOYEE

2 years ago

copy the nixpacks.toml and Caddyfile from this repo into your project


dvdmnc
TRIALOP

2 years ago

Just this one : CI=false npm run build. Ok did it


brody
EMPLOYEE

2 years ago

set a service variable CI=false instead


dvdmnc
TRIALOP

2 years ago

Error: reading input file: open Caddyfile: no such file or directory


dvdmnc
TRIALOP

2 years ago

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
EMPLOYEE

2 years ago

did you copy both files, keeping the same filenames?


dvdmnc
TRIALOP

2 years ago

I thought so but it seems that my computer renamed CaddyFile to CaddyFile.txt that should solve the issue


dvdmnc
TRIALOP

2 years ago

It worked!
Can you tell me what the problems were?


brody
EMPLOYEE

2 years ago

you where trying to a development server


dvdmnc
TRIALOP

2 years ago

Alright, so don't use react script when deploying and you should be good


brody
EMPLOYEE

2 years ago

correct, react script has no way of running a production server


Loading...