Closed ciscoheat closed 8 months ago
Looks like an SSR issue, it works in the REPL.
Server output shows the missing reference:
// App.svelte (Svelte v5.0.0-next.35)
// Note: compiler output will change before 5.0 is released!
import * as $ from "svelte/internal/server";
import { writable } from 'svelte/store';
export default function App($$payload, $$props) {
$.push(false);
const $$store_subs = {};
const msg = writable('');
$$payload.out += `<textarea>`;
const $$body = $.escape($msg); // <- probably this
if ($$body) {
$$payload.out += `${$$body}`;
} else {}
$$payload.out += `</textarea>`;
$.unsubscribe_stores($$store_subs);
$.pop();
}
Describe the bug
I noticed that binding to a textarea with a store gives an error (see logs):
Binding to an input field works fine.
Reproduction
https://github.com/ciscoheat/svelte5-textarea-error
Logs
System Info
Severity
blocking an upgrade