-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite server not working in monorepo #26035
Comments
Can you please provide more information on how to reproduce this? This code base is a monorepo with Vite but it is functioning as expected. What package manager are you using? What happens if you add your monorepo root to your |
HI @lmiller1990 , basically when I run Vite dev server (Quasar), everything works fine. But when I start component tests, I'm getting the same error as here in tests (UI mode). I described my workaround in Quasar repo. and I'm using yarn. Thanks |
Should be fixed by #26036. This will be in the next release, which is in two weeks (prior to end of March). |
Current behavior
Project root is not recognised in monorepo (Vite dev server).
Desired behavior
Work correctly in monorepo.
Add
searchForWorkspaceRoot(process.cwd())
tocypress/npm/vite-dev-server/src/resolveConfig.ts
Line 114 in 434e6ee
Test code to reproduce
Similar to https://stackoverflow.com/questions/74902697/error-the-request-url-is-outside-of-vite-serving-allow-list-after-git-init
Cypress Version
12.7.0
Node version
18.13.0
Operating System
macOO
Debug Logs
No response
Other
Vite docs: https://vitejs.dev/config/server-options.html#server-fs-allow
The text was updated successfully, but these errors were encountered: