-
Notifications
You must be signed in to change notification settings - Fork 151
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
Warnings when using SASS: "svelte.preprocess returned this file as a dependency of itself" #619
Comments
I ran into this issue as well after migrating to SvelteKit v2. It occurs when the SCSS preprocessor has
Any Svelte file that includes
I've created a minimal reproduction of this issue here: https://github.com/richardfxr/sveltekit2-preprocess-dependency-issue |
OK.. Cool.. I also came across this just now when updating a non-SvelteKit library / app and also came to the determination that any Svelte component that uses The discrepancy is Array.from(compiled.stats.includedFiles).filter(
(filepath) => filepath !== absoluteEntryPath,
), appears to be comparing a Posix file path and a Windows resolved one. So quite likely this issue isn't seen from any Svelte maintainers not working on Windows. Of course other transformers may also have this issue in regard to path comparisons. |
see here how to silence the warning until this is fixed sveltejs/vite-plugin-svelte#822 (comment) |
Seems to be a sass issue (and it's probably going on for quite a while). The
While the
Should be fixed by #621 |
Thanks a lot Christian for debugging and working out a fix. FYI: I'm indeed using Windows. |
Hey @josdejong, i just released |
Wow that's fast 🚀😎. The issue is indeed resolved now, thanks a lot. |
I'm still seeing this issue with 5.1.3. I'm also on windows, although Is there a straightforward way for me to examine |
@bmcbarron I'm working on On a side note: a stupid deletion of |
I'm working on an upgrade of my Svelte project to
@sveltejs/kit@2
,vite-plugin-svelte@3
,vite@5
, andvitest@1
. All works fine, except I now get the following warning for each of my Svelte component:Now, I'm using
svelte-preprocess
andsass
in all of my components, like:When I remove
<style src="./StatusBar.scss"></style>
from the file, the warning disappears so it looks like this is related to usage of SASS.Any idea how to solve this?
The text was updated successfully, but these errors were encountered: