-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
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
Svelte: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>? #19217
Comments
@doolijb You'll need to install and use https://github.com/storybookjs/addon-svelte-csf in order to write svelte-native stories. |
Oh weird, is csf bundled in now? |
Any chance you could create a minimal reproduction, or share a link to your project if it's open source? |
https://github.com/doolijb/19217_sb_svelte_reprod Just in case, I added svelte-csf and declared it in the addons, but it makes no difference. Otherwise this is a barebones install with the example button story swapped out for one in svelte syntax. |
Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.35 containing PR #19339 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Hey @shilman,
|
@glitchedgitz there are some changes in 7.0, you should be able to run |
Have the same error in 7.0, and that automigrate command is basically useless. |
@octoxan can you open a new issue with the details of the error you're seeing and the output of the automigrate command? And please tag me in it so I see it? |
Describe the bug
Fresh Svelte/Vite project initiated with Routify 3.
JS/X method of declaring decorators are broken, so I attempted to use svelte syntax for stories instead as a workaround.
Using
FooBar.stories.svelte
format results in errorAdjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?
To Reproduce
$ npx @roxi/routify@next create MyApp
$ npm i
$ npx sb init
- Yes to v7 migration
- Write a basic component with a svelte native story
$ npm run storybook
Error: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?
System
The text was updated successfully, but these errors were encountered: