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

Unable to npm run dev [vite] Internal server error: The request url "/service-worker.js" is outside of vite dev server root #1421

Closed
iqcudi opened this issue May 11, 2021 · 4 comments

Comments

@iqcudi
Copy link

iqcudi commented May 11, 2021

Describe the bug
This warning pops up when trying to npm run dev

To Reproduce
Installed sveltekit, netlify adapter and ran npm run dev just that.

bugg

@vfilatov
Copy link

I believe that is a bug in vite.

workaround for your case #1414

@BetaConnector
Copy link

I created a issue: vitejs/vite#3364

@Conduitry
Copy link
Member

Yes, this is almost certainly a Vite bug. We'll track it on our end in #1420. Closing.

@xferqr
Copy link

xferqr commented May 12, 2021

It works for me:
try create "static/service-worker.js" file

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

No branches or pull requests

5 participants