Closed JakubCzarlinski closed 1 week ago
in svelte 5 you should change mount method
import App from './App.svelte';
import { mount } from 'svelte';
const app = mount(App, { target: document.getElementById("app") });
export default app;
and the latest vite plugin use some not support config in farm we will fix it
You can temporarily add the optional chain operator in source code
options.server?.config.experimental?. hmrPartialAccept
Of course, this will not affect build
and preview
its happend in development
We will find a way to fix this problem as soon as possible
its work well
Ah my bad forgot about that. Thank you!
Steps to reproduce
bun create farm@latest
svelte
template.cd farm-project
bun install
- this installs svelte 4bun run dev
- worksbun install svelte@latest @sveltejs/vite-plugin-svelte@latest svelte-check@latest
- this installs svelte 5bun run dev
- this fails.bun run build && bun run preview
- this also fails.Example:
https://github.com/JakubCzarlinski/farm-svelte-5-issue
Reproduce link
https://github.com/JakubCzarlinski/farm-svelte-5-issue
What is actually happening?
Updating to Svelte 5 errors on page render in both dev and prod build when using Farm.
System Info