Next.js Discord

Discord Forum

RangeError: Maximum call stack size exceeded

Unanswered
Crème D’Argent posted this in #help-forum
Open in Discord
Crème D’ArgentOP
The code compiles normally on my local machine but when i deploy it to vecel following errors occur
at parse (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:6313)
at picomatch.makeRe (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:21670)
at picomatch (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:19637)
at /vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:19294
at Array.map (<anonymous>)
at picomatch (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:19286)
at micromatch.isMatch (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:1090)
at /vercel/path0/node_modules/next/dist/build/collect-build-traces.js:245:48
at shouldIgnore (/vercel/path0/node_modules/next/dist/build/collect-build-traces.js:75:9)
at /vercel/path0/node_modules/next/dist/build/collect-build-traces.js:86:23
Error: Command "npm run build" exited with 1
I think this error is related to the big size of the production version of my application.
Code will be provided if interested.
nextjs version: 14.0.4

3 Replies

can we see some code?
Are you using sharp? Try to downgrade it to 0.33.1.
@Nelson Are you using `sharp`? Try to downgrade it to `0.33.1`.
Laughing Gull
Saved my ass. Thanks