Next.js Discord

Discord Forum

Next.js Vercel build failure

Unanswered
Red-breasted Flycatcher posted this in #help-forum
Open in Discord
Red-breasted FlycatcherOP
The builds for my Next application started to fail due to the following error:

RangeError: Maximum call stack size exceeded at RegExp.exec (<anonymous>) at create (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:18889) at create (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:18918) at parse.fastpaths (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:18997) at picomatch.makeRe (/vercel/path0/node_modules/next/dist/compiled/micromatch/index.js:15:21635) 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) Error: Command "npm run build" exited with 1

Has anyone faced this before?
This log does not seem to help much towards fixing the error, and currently this blocks the progress.

2 Replies

Please downgrade the sharp version to 0.33.1.
@Nelson Please downgrade the sharp version to `0.33.1`.
Red-breasted FlycatcherOP
Thank you @Nelson :blob_wave: