English 中文(简体)
自行部署:
原标题:Error deploying Next.js app on Vercel: "RangeError: Maximum call stack size exceeded"

我在部署<>Next.js申请时遇到了以下错误:

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


I couldn t use debugging options, like NODE_DEBUG=regex npm run build, to gain new insights.

我赞赏任何建议,并事先感谢你。

问题回答

It happens when you accidentally call a function, then in that function, you call another function, and so on until it reaches the limit. Common symptoms are:

  • You call the function inside itself without a break check.
  • You import a module inside itself

People discuss multiple reasons here, maybe it could give you some clues: Maximum call stack size exceeded error





相关问题
拆除月度边界(实际大型日历)

采用大型反应日历的Im, 并想要清除包罗日历的边界。 以及如何改变日记栏和日记的颜色? 如何使其发挥作用?

表中未显示的元数据

我将元件定义为如下文所示,但是在我的剪辑中,它没有显示“当地:3000/#home”。 我的所有jsx档案都有“用户”bc。

NextJS 13 Data Fetching

Is there anyway of custom baseURL for their fetch method? For example in axios: const instance = axios.create({ baseURL: https://some-domain.com/api/ , timeout: 1000, headers: { X-Custom-Header ...

热门标签