You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I'm starting to migrate from 7.6.16 to ^8.1
nextjs, ts
during the migration, I'm encountering some errors so I've decided to do it in steps.
so first, when running dlx [email protected] migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx
I'm getting this error on 9/95 files (19 ok, 67 unmodified),
and on the successful files, prettier doesn't work (I'm running prettier ^3 on my project and sb uses ^2, I think)
Failed applying prettier to [successfulFile1.stories.tsx]
Failed applying prettier to [successfulFile2.stories.tsx]
ERR src/failedFile.stories.tsx Transformation error ( Property value of ObjectProperty expected node to be of a type ["Expression","PatternLike"] but instead got undefined
I got similar errors (different attributes) when running other migrations, is there something wrong with my config?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Hey there, I'm starting to migrate from 7.6.16 to ^8.1
nextjs, ts
during the migration, I'm encountering some errors so I've decided to do it in steps.
so first, when running
dlx [email protected] migrate csf-2-to-3 --glob="**/*.stories.tsx" --parser=tsx
I'm getting this error on 9/95 files (19 ok, 67 unmodified),
and on the successful files, prettier doesn't work (I'm running prettier ^3 on my project and sb uses ^2, I think)
I got similar errors (different attributes) when running other migrations, is there something wrong with my config?
Additional information
storybook 7.6.16
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions