Open callmeberzerker opened 3 weeks ago
Sorry, I didn't use svelte
I use it in all my sveltekit projects and have no issues, newer node versions require setting proxy like this
export default defineConfig({
server: { proxy: {} }
});
I think this broke somewhere between node 20.10 and 20.12. Also make sure you do not have a pnpm node version / node_modules mess (different versions mixing)
I use it in all my sveltekit projects and have no issues, newer node versions require setting proxy like this
export default defineConfig({ server: { proxy: {} } });
I think this broke somewhere between node 20.10 and 20.12. Also make sure you do not have a pnpm node version / node_modules mess (different versions mixing)
I can confirm that this fixes it, thanks for that! It should work w/o the proxy bit so providing a repro momentarily...
@liuweiGL reproduction attached to the original issue description.
Describe the bug
Doesn't work with svelte-kit latest version. (see system info below)
Reproduction
pnpm install
pnpm dev
https://localhost:5173/
in the browser and observe the stack traceSystem Info
Output of
npx envinfo --system --npmPackages vite,vite-plugin-mkcert --binaries --browsers
:Used package manager: pnpm
Logs