-
-
Notifications
You must be signed in to change notification settings - Fork 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
Sourcemap for "/.../...svelte" points to missing source files (if empty script tag) #2029
Comments
additional context: #2001 |
Here's the warning I get:
Here's the sourcemap definitions:
Those files definitely exist. This seems like a Vite bug: vitejs/vite#4423 |
this should be fixed the next time a release of svelte is cut: sveltejs/svelte#6598 |
The error is back in v1.0.0-next.310 |
caused by sourcemaps created by svelte-preprocess, fix pending here sveltejs/svelte-preprocess#500 |
I have the error too, not sure how to fix this:
I solved this by pinning:
And also pinning vite, which was the real culprit for me:
|
Please install the latest version of |
Describe the bug
Warning/Error Message "Sourcemap for /.../...svelte points to missing source files" happens on a simple import in __layout.svelte, as long as the file contains only content, but if there is a <script> tag with code (e.g. <script>abc=123</script>), then the error message doesn't appear.
Reproduction
Add the following to __layout.svelte:
and create the file lib/footer/Footer.svelte without any script tag and only text, e.g.: abc
Run
npm run dev
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: