generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Use default init project (
npx sv createwith storybook support) - Add
compilerOptions: {
runes: true,
}- Run storybook
- 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
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working