We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The csf-2-3 automigration script does not transform StoryFn types to StoryObj.
StoryFn
StoryObj
Requirements:
export const Default: StoryFn = () => {...}
npx sb@next migrate csf-2-to-3 --glob="**/*.stories.ts"
The text was updated successfully, but these errors were encountered:
👆 fyi: @kasperpeulen
Sorry, something went wrong.
Strange, I have used this script to transform all the CLI templates from CSF2 to CSF3 🤔
Also tagging mr. @shilman
@valentinpalkovic I have the same issue. Not sure if this is a regression then.
csf-2-to-3
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.29 containing PR #20273 that references this issue. Upgrade today to the @next NPM tag to try it out!
@next
npx sb@next upgrade --prerelease
Closing this issue. Please re-open if you think there's still more to do.
kasperpeulen
No branches or pull requests
Describe the bug
The csf-2-3 automigration script does not transform
StoryFn
types toStoryObj
.Requirements:
StoryFn
type assignments should be replaced byStoryObj
.StoryFn
instead ofStoryObj
To Reproduce
StoryFn
from "@storybook/" and use it for a Story.npx sb@next migrate csf-2-to-3 --glob="**/*.stories.ts"
StoryFn
type is not transformed toStoryObj
The text was updated successfully, but these errors were encountered: