RangeError: Maximum call stack size exceeded nextjs
Answered
Thrianta posted this in #help-forum
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 showingAnswered by Thrianta
i did not have sharp installed, i changed
outputFileTracing: false and it started working all of a sudden4 Replies
@Thrianta 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
Do you have sharp installed? If yes, sharp@0.33.2 or higher causes this error, so downgrade sharp to 0.33.1
As far as I know, this bug is not due to sharp but due to vercel, and neither side has patched it
ThriantaOP
i did not have sharp installed, i changed
outputFileTracing: false and it started working all of a suddenAnswer
Oh I see. Yeah I guess nextjs is still buggy about this part