[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # Error during Collecting build traces on vercel build 216 views · 2 likes · 3 posts Quinten (@j-c-q) · 2024-08-19 Building my Next.js app locally works flawlessly, but when I try to build it on Vercel I get this error when it is trying to collect build traces: ``` RangeError: Maximum call stack size exceeded 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 ``` Does someone have an idea why this happens on Vercel but not locally? Quinten (@j-c-q) · 2024-08-19 · ♥ 2 [quote="j-c-q, post:1, topic:652"] ``` RangeError: Maximum call stack size exceeded 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 ``` [/quote] It was a problem with my Next.js version, see: https://github.com/orgs/vercel/discussions/5491. Amy Egan (@amyegan) · 2024-08-19 Thanks for coming back to share this solution!