RangeError:graphql 工具的 docker 容器内超出了最大调用堆栈大小

问题描述

我已经用 node:12.19.0 构建了一个 docker 一个图像。我可以毫无问题地构建图像。但是当我尝试运行它时,我得到

RangeError: Maximum call stack size exceeded
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:786:24)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)
at visitTypeSources (/node_modules/@graphql-tools/merge/index.cjs.js:789:17)

我有图形工具 6.2.4。但有趣的是我可以在没有 docker 的情况下运行应用程序。只有当我尝试在 docker 上运行它时才会出现这个问题。 我的 docker 文件是

FROM node:12.19.0
COPY package.json ./
RUN npm install --production
RUN npm install pm2 -g
COPY dist /src
CMD ["pm2-runtime","start","/src/index.js","--name","api","   -i","4"]

我几乎尝试了互联网上的所有答案,但没有任何效果对我有用。请帮我解决一下这个。提前致谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)