Vercel build fails with write EPIPE in Miniflare (void:prerender plugin)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- typescript
- 领域
- build-system, cloud
调研方向
Start with pnpm run build, which runs velite, vp build, and the tsx assets script, then trace the void:prerender plugin at its closeBundle hook where Miniflare raises EPIPE. Compare the worker and client build stages with the Vercel production environment. Done means the Vercel production build completes without the uncaught EPIPE while preserving prerender behavior.
由索引模型根据 Issue 内容生成。
描述
I'm migrating my blog to use void SSG. The site successfully deploys on Void, Netlify and Cloudflare, but the build fails on Vercel.
Failure symptoms:
- Vercel build fails during the production build step with an uncaught write EPIPE originating from miniflare when the
void:prerenderplugin runs (hook: closeBundle). - Error excerpt from the Vercel build log:
error during build:
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:966:11)
at Socket._write (node:net:978:8)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writable.write (node:internal/streams/writable:510:10)
at Runtime.updateConfig (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:71685:26)
at async #assembleAndUpdateConfig (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:91445:30)
at async Mutex.runWith (/vercel/path0/node_modules/.pnpm/[email protected]/node_modules/miniflare/dist/src/index.js:59980:48) {
errno: -32,
code: 'PLUGIN_ERROR',
syscall: 'write',
pluginCode: 'EPIPE',
plugin: 'void:prerender',
hook: 'closeBundle'
}
Additional context from the log:
- Build runs "pnpm run build" which executes velite, vp build and a tsx assets build script.
- Vite builds both the worker (ssr) and the client bundles successfully before the error occurs during a plugin closeBundle step.
- There is also a warning about ignored build scripts and Corepack downloading pnpm, but the primary failure appears to be the write EPIPE in Miniflare.
What I tried / questions:
- I haven't modified Miniflare configuration intentionally; it's used by the Void prerender plugin.
- Are there known Vercel environment limits or stdout/stderr buffering issues that could cause Miniflare to fail with EPIPE during closeBundle?
- Any suggestions for debugging or configuration changes to avoid this error on Vercel (e.g., disabling prerender during build, adjusting miniflare usage, or environment variables)?
Please let me know what additional logs or environment info you'd like and how I can help reproduce. Thank you!
- 主要语言
- TypeScript
- 星标
- 149
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
void-sdk/void 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 57/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
receptron/mulmoterminal#2264 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 78/100
components-web-app/docs#96 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 68/100
simonsobs/tileviewer#114 ·
-
难度 2/5 1-3 小时 新手友好度 75/100