You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> vite preview
error when starting preview server:
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at proxyMiddleware (/Users/liuyang/Desktop/work/yiyao_fe_shangjia_react/b2c_welcome/node_modules/vite/dist/node/chunks/dep-9c153816.js:51440:12)
at preview (/Users/liuyang/Desktop/work/yiyao_fe_shangjia_react/b2c_welcome/node_modules/vite/dist/node/chunks/dep-9c153816.js:69529:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CAC.<anonymous> (/Users/liuyang/Desktop/work/yiyao_fe_shangjia_react/b2c_welcome/node_modules/vite/dist/node/cli.js:783:24)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
Configuring preview.proxy doesn't work, and running vite preview will give an error when server.proxy is not configured.
pr: #7415
Reproduction
https://stackblitz.com/edit/vitejs-vite-b5medm?file=vite.config.ts&terminal=dev
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: