Next.js Discord

Discord Forum

RangeError: Maximum call stack size exceeded nextjs

Answered
Thrianta posted this in #help-forum
Open in Discord
ThriantaOP
Hii, i am getting this error RangeError: Maximum call stack size exceeded nextjs while deploying to vercel on Collecting build traces step, the issue is that when i run the build command locally on my project i see no such error, but when i use the vercel cli to build or deploy to vercel i see this error, i have not changed any of my layouts in app directory so i am pretty sure i am not importing the same component as well, this issue just randomly started showing
Answered by Thrianta
i did not have sharp installed, i changed outputFileTracing: false and it started working all of a sudden
View full answer

4 Replies

ThriantaOP
i did not have sharp installed, i changed outputFileTracing: false and it started working all of a sudden
Answer
Oh I see. Yeah I guess nextjs is still buggy about this part