Skip to content
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: Fix regression causing all stories to error #19653

Merged
merged 1 commit into from
Oct 27, 2022
Merged

Conversation

IanVS
Copy link
Member

@IanVS IanVS commented Oct 27, 2022

Issue: #19634

What I did

Reverted a change made in https://github.com/storybookjs/storybook/pull/19512/files#diff-8e2b2768c655a2de34733307ce49b791b83cbee8126497632f03be49f00c7bfb.

I'm not 100% certain why this change broke svelte. The closest I could come was a mention in https://stackoverflow.com/questions/64847693/uncaught-error-target-is-a-required-option-svelte about different copies of svelte being used to render the components. Maybe @benmccann would know more. But at least this change fixes it.

How to test

yarn task --task sandbox --template svelte-vite/default-js
cd sandbox/svelte-vite-default-js/
yarn storybook
Open any story, it should render without error

@benmccann
Copy link
Contributor

I'm not quite sure why there would be two copies of Svelte. If you can figure out what the two copies are then maybe that'd give us something more to go off of

@JReinhold JReinhold changed the title Svelte: Import PreviewRender from @storybook/svelte Svelte: Fix regression causing all stories to error Oct 27, 2022
@JReinhold JReinhold merged commit b2c3935 into next Oct 27, 2022
@JReinhold JReinhold deleted the fix-svelte-target branch October 27, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants