Skip to content
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

Closed
radoslavirha opened this issue Mar 7, 2023 · 3 comments · Fixed by #26036
Closed

Vite server not working in monorepo #26035

radoslavirha opened this issue Mar 7, 2023 · 3 comments · Fixed by #26036
Assignees

Comments

@radoslavirha
Copy link
Contributor

Current behavior

Project root is not recognised in monorepo (Vite dev server).

Desired behavior

Work correctly in monorepo.

Add searchForWorkspaceRoot(process.cwd()) to

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

@lmiller1990
Copy link
Contributor

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 vite.config under fs.allow?

@radoslavirha
Copy link
Contributor Author

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

@lmiller1990
Copy link
Contributor

Should be fixed by #26036. This will be in the next release, which is in two weeks (prior to end of March).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants