vue3-antdv-admin icon indicating copy to clipboard operation
vue3-antdv-admin copied to clipboard

vite-plugin-http2-proxy timeout是我哪里配置出了问题吗

Open shaokeke opened this issue 10 months ago • 2 comments

[vite] Internal server error: proxy timeout at ClientRequest.onProxyReqTimeout (D:\company\vue\vue3-antdv-admin\node_modules.pnpm\[email protected]\node_modules\http2-proxy\index.js:227:25) at ClientRequest.emit (node:events:518:28) at Socket.emitRequestTimeout (node:_http_client:840:9) at Object.onceWrapper (node:events:632:28) at Socket.emit (node:events:530:35) at Socket._onTimeout (node:net:589:8) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7)

image

shaokeke avatar Apr 08 '24 04:04 shaokeke

🤔 不是很清楚,我在不同电脑上都没复现,必现吗?影响程序正常运行不? 本地开发不需要 http2 的话,可以注释掉该插件: https://github.com/buqiyuan/vue3-antdv-admin/blob/f6a8090daeca2a86046f6c959a8fd0f38644bf26/vite.config.ts#L60

buqiyuan avatar Apr 08 '24 14:04 buqiyuan

我找到问题了,nodejs版本问题,18.18.2没有问题,使用20.11.1是有问题的,已经注释该插件了,注释后不影响使用的

shaokeke avatar Apr 09 '24 01:04 shaokeke