#React to Nextjs stories migration

3 messages · Page 1 of 1 (latest)

sage fern
#

Hi everyone, so I have one project which is a year old and its code base is in react in which I have implemented storybook (V6.4) and all the stories in that project i have created using ComponentMeta , ComponentStory module from storybook . Now we have shifted our code base in Nextjs and I want to migrate 100+ stories into nextjs. Now when I'm installing the storybook I'm getting version 7 and in v7 "ComponentStory" is deprecated . So can anyone help me out with any alternative way

faint pewter
#

You might want to run a migration on the old code base to update the stories to the new syntax. Then init storybook with next.

sage fern
#

could you please clarify a bit more @faint pewter . Like how can i do that ?