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
The new 2.3.0 fsServe configuration and their relative checks do not work quite well on Windows! In a workspace setup, where the vite app is itself an inner package, path checks fails.
[vite] Internal server error: The request url "C:\MONOREPO_ROOT\node_modules\bootstrap-icons\font\fonts\bootstrap-icons.woff?231ce25e89ab5804f9a6c427b8d325c9" is outside of vite dev server root "C:/MONOREPO_ROOT".[dev:frontend] For security concerns, accessing files outside of workspace root is restricted since Vite v2.3.x. [dev:frontend] Refer to docs https://vitejs.dev/config/#server-fsserveroot for configurations and more details.[dev:frontend] at ensureServingAccess (C:\MONOREPO_ROOT\node_modules\vite\dist\node\chunks\dep-c9ea388d.js:57841:15)
Before submitting the issue, please make sure you do the following
Describe the bug
The new 2.3.0
fsServe
configuration and their relative checks do not work quite well on Windows! In a workspace setup, where the vite app is itself an inner package, path checks fails.At this line
vite/packages/vite/src/node/server/middlewares/static.ts
Line 110 in bdc1ea3
.startsWith
break because posix separators do not match windows separatorsI'm gonna try to patch this in a PR, wish me luck
System Info
Used package manager:
npm
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: