-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
The following code used in a Svelte 4 app throws an error on Svelte 5:
<script context="module">
import { writable, derived } from "svelte/store";
const a = writable(1)
const b = derived([a], ([$a]) => $a * 2)
</script>
<div>hello world</div>If I remove the context=module, the code works. I think this file shouldn't run in runes mode since it's not using runes.
Reproduction
Logs
No response
System Info
Svelte 5Severity
annoyance