-
-
Notifications
You must be signed in to change notification settings - Fork 2k
tsconfig.json error: Cannot write file 'src/service-worker.js' because it would overwrite input file #985
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
Comments
I can't reproduce this on Linux. I haven't tried Windows. |
I get the error in VSCode too. The code is the same as https://github.com./frederikhors/protobuf-ts-issue-94. |
Update Kit to the latest version and remove the |
@dummdidumm I updated to "@sveltejs/kit": "^1.0.0-next.74", and removed the two lines from the tsconfig. But now the paths "$app/..." are not working anymore. Is there anything else that needs to be modified? Thanks in advance! |
Updating and removing |
@ignatiusmb thanks for the reply! Restarting Svelte Language Server did the trick 👍 Sorry, was completely unaware of that, Edit: see comment below |
Small note: You referenced the very old repository which contains the now obsolete extension. This repo is where the development of it happens now and the official extension is this one |
For me this is not related to service worker. I've inited svelte project and I don't have it for now. Reproducable like this: (choose yes to typesrcipt)
EDIT: Sorry guys for ping. This is svelte vscode extension issue. After restarting it everything works fine. In case I will get any problems I'll open issue in svelte language tools repo |
Describe the bug
Reading the docs about service worker I added an empty
service-worker.js
in mysrc
dir.I need it empty so vite sees it and produces the code to register it in the final bundle (I will fill in the file afterwards).
But now my (default)
tsconfig.json
is complaining with:Why?
Information about your SvelteKit Installation:
Diagnostics
The output of
npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers
:System:
OS: Windows 10 10.0.19042
Binaries:
Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
npm: 7.9.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
@sveltejs/kit: 1.0.0-next.71 => 1.0.0-next.71
svelte: 3.37.0 => 3.37.0
vite: 2.1.5 => 2.1.5
Your adapter: static
Additional context
Maybe related to #716.
The text was updated successfully, but these errors were encountered: