Closed shrilakshmishastry closed 8 months ago
hi @shrilakshmishastry have you added 'storybook-msw-addon' to the addons list in storybook's main.ts? if that doesn't work, can you share a repo or codesandbox reproducing the issue so I can take a look? thank you
Hey, thanks for the quick come back !!
Yes , I have added storybook-msw-addon
in main.js. I can't share repo it's organisation one and private,
But I can share the version of repos I am using
"@storybook/react": "^6.5.16" "@storybook/addon-actions": "^6.5.16", "@storybook/addon-docs": "^6.5.16", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-knobs": "^6.4.0", "@storybook/addon-viewport": "^6.5.16", "@storybook/builder-webpack5": "^6.5.16", "@storybook/manager-webpack5": "^6.5.16", "@storybook/preset-create-react-app": "^4.1.2", "@storybook/preview-api": "^7.3.0", "storybook-msw-addon": "^0.3.21", "msw": "^1.2.3", "msw-storybook-addon": "^1.8.0"
Is this supported for storybook react ?
is there any other dependency I should be adding along with this library?
hi @shrilakshmishastry I see, I think it has too do with the fact that I built the library using the addon-kit for Storybook > 7 which uses vite instead of webpack.. I haven't tested it with webpack builder. Any chance you can upgrade your storybook to vite?
Not getting MSW on add on panel as shown in the example in storybook, even after passing proper params. Mocking is working fine
code for preview.js
code for story