I had msw-storybook-addon working with SB6 and am trying to upgrade to SB7. I used Storybook's automigrate, npx storybook@next automigrate and upgraded to the latest version of this addon:
The following setup results in 404 on mocked calls from stories that were previously working, as well as a 404 when trying to retrieve the mockServiceWorker.js
TypeError: Failed to update a ServiceWorker for scope ('http://localhost:6006/') with script ('http://localhost:6006/mockServiceWorker.js'): A bad HTTP response code (404) was received when fetching the script.
My bad, somehow I lost the staticDirs config in my Storybook config while I was converting a bunch of files to typescript. Restored it and things are working fine now with the new mswLoader
I had msw-storybook-addon working with SB6 and am trying to upgrade to SB7. I used Storybook's automigrate,
npx storybook@next automigrate
and upgraded to the latest version of this addon:The following setup results in 404 on mocked calls from stories that were previously working, as well as a 404 when trying to retrieve the mockServiceWorker.js
The following setup results in a 404 for http://localhost:6006/mockServiceWorker.js. The mocked calls are not attempted.
Storybook info: