WIP: fix Storybook
I can help you with this. We can have a talk.
@SavvyShah I've sent you an email.
There are some remaining issues with the storybook setup:
- I have only enabled a single example story. Others can be added in .storybook/main.ts
- the addons in storybook 6 have changed (https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-addon-presets).
with-knobsis deprecated but heavily used in the project - 'babel-plugin-import' which is used to simplify a component library imports doesn't seem to work with webpack anymore (https://www.npmjs.com/package/babel-plugin-import). It's currently disabled.
- There are a number of TS errors in the stories.
Can we use a codemod to convert storiesOf to CSF?
Hey @ShMcK . Sorry I have been slow in doing this. But I've made a couple of changes and configured an additional story.
I have linked a PR where I have made changes.
I found that mocking to the global API should be done in preview.ts.
Thanks @SavvyShah !
There seem to be some yarn.lock conflicts. These can likely be resolved by deleting the yarn.lock file and running yarn again.