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

Svelte: Cypress fails because of missing configuration in vite #1032

Open
floratmin opened this issue Sep 27, 2023 · 0 comments
Open

Svelte: Cypress fails because of missing configuration in vite #1032

floratmin opened this issue Sep 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@floratmin
Copy link

When generating an application with cypress e2e the command nx run app-e2e:e2e fails with

Failed to load url /src/main.ts (resolved id: /home/workspace/app/src/main.ts). Does the file exist?
The request url "/home/workspace/app/src/main.ts" is outside of Vite serving allow list.

When I add

fs: {
    allow: [process.cwd()],
},

in the file vite.config.ts in the config under the key server, then the tests are working.

@floratmin floratmin added the bug Something isn't working label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant