bbbtech / storybook-formik

A storybook decorator that allows you to use components in your stories that rely on Formik context.
53 stars 17 forks source link

Storybook 8 compatibility #75

Open joevaugh4n opened 6 months ago

joevaugh4n commented 6 months ago

Hey @bhishp! I’m reaching out from the core SB team :)

Storybook 8 (our next major release) is coming soon, and it introduces some breaking changes that your addon might need to account for.

We’ve listed all the key changes in a new Storybook 8 migration guide, and we’d encourage you to check it out and see if your addon is impacted.

We also have an addons channel in our Discord community, which we’d like to use to better communicate with addon authors in the future. If you’re not part of the server, consider joining here and message me (@joevaugh4n) so that I can give you the addon creator role! If you’re already in the server, please just ping me and I’ll respond to you there.

Thanks for being a part of our addon community!

Joe

gentslava commented 6 months ago

Please make the correction according to the documentation https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#no-more-default-export-from-storybookaddons

At the moment I am getting an error when assembling the Storybook

✘ [ERROR] Could not resolve "@storybook/addons"

node_modules/@bbbtech/storybook-formik/dist/esm/index.js:14:47:
  14 │ import { makeDecorator, useArgs, addons } from '@storybook/addons';
     ╵                                                ~~~~~~~~~~~~~~~~~~~

You can mark the path "@storybook/addons" as external to exclude it from the bundle, which will remove this error.

rhys-saunders commented 5 months ago

I'm also having issues upgrading to Storybook 8 due to this

aestradaes commented 4 months ago

Is there any ETA on this? Would love for it to work with StoryBook 8!

redarccoder commented 3 weeks ago

Same issue here, the plugin installs but I don't get any data on it.

bhishp commented 3 weeks ago

There is a PR here opened by @gentslava but when I was testing pre-merge I didn't see the plugin working as expected - https://github.com/bbbtech/storybook-formik/pull/76#issuecomment-2215437898. Happy to get something merged if we can update the PR or confirm its working as expected