We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bun create farm@latest
svelte
cd farm-project
bun install
bun run dev
bun install svelte@latest @sveltejs/vite-plugin-svelte@latest svelte-check@latest
bun run build && bun run preview
Example:
https://github.com/JakubCzarlinski/farm-svelte-5-issue
Updating to Svelte 5 errors on page render in both dev and prod build when using Farm.
System: OS: Linux 6.11 CachyOS Linux CPU: (24) x64 AMD Ryzen 9 7900 12-Core Processor Memory: 49.36 GB / 61.94 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 22.9.0 - /usr/bin/node npm: 10.9.0 - /usr/bin/npm bun: 1.1.34 - ~/.bun/bin/bun npmPackages: @farmfe/core: ^1.3.0 => 1.3.33
The text was updated successfully, but these errors were encountered:
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
build
preview
We will find a way to fix this problem as soon as possible
its work well
Sorry, something went wrong.
Ah my bad forgot about that. Thank you!
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: