You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
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
where, for me, the configs have these values:
config.root
=C:/Users/.../project-dir
resolved_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 usesprocess.cwd()
to get it. Maybe it should useposixify()
on it before? Replacing this line:kit/packages/kit/src/exports/vite/index.js
Line 262 in 01f001b
with this:
The text was updated successfully, but these errors were encountered: