Skip to content

[Bug] Full runes mode support #337

@BlackySoul

Description

@BlackySoul

Describe the bug

If i set

compilerOptions: {
   runes: true,
}

in my svelte.config.js file, Storybook will fail to compile.

Steps to reproduce the behavior

  1. Use default init project (npx sv create with storybook support)
  2. Add
compilerOptions: {
   runes: true,
}
  1. Run storybook
  2. Error:

✘ [ERROR] node_modules/@storybook/addon-svelte-csf/dist/runtime/LegacyTemplate.svelte:14:2 Cannot use export let in runes mode — use $props() instead
https://svelte.dev/e/legacy_export_invalid [plugin vite-plugin-svelte:optimize]

Expected behavior

Storybook builds successfully

Screenshots and/or logs

Image

Environment

  • OS: iOS
  • Node.js version: 24.11.0
  • NPM version: 11.6.1
  • Browser (if applicable): -
  • Browser version (if applicable): -
  • Device (if applicable): -

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions