-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Copy link
Labels
Description
Describe the bug
This warning pops up when running vitest on Windows. It seems like the config() function of the Kit Vite plugin runs multiple times, and that paths are normalized (possibly since Vite 6?). The warning comes from this line:
kit/packages/kit/src/exports/vite/index.js
Line 1061 in 01f001b
| if (config[key] !== resolved_config[key]) { |
where, for me, the configs have these values:
config.root=C:/Users/.../project-dirresolved_config.root=C:\Users\...\project-dir
So, the 2 configs have the same path, but one with forward slashes, and one with backslashes.
SvelteKit itself tries to set config.root to the version with backslashes, as it uses process.cwd() to get it. Maybe it should use posixify() on it before? Replacing this line:
kit/packages/kit/src/exports/vite/index.js
Line 262 in 01f001b
| root: cwd, |
with this:
root: posixify(cwd),Reactions are currently unavailable