MSW version 2.0.1 to Storybook version 7.6 #1908
Replies: 1 comment
-
Check out the migration guide which should help you out here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
i am trying to upgrade my storybook version from 6.5 to 7.6 and msw version from 1.3.2 to 2.0.1 but i am having an issue with the setupWorker like this:
(0 , msw__WEBPACK_IMPORTED_MODULE_1__.setupWorker) is not a function TypeError: (0 , msw__WEBPACK_IMPORTED_MODULE_1__.setupWorker) is not a function at ./mocks/browser.js (http://localhost:6006/main.iframe.bundle.js:158:107) at options.factory (http://localhost:6006/runtime~main.iframe.bundle.js:687:31) at __webpack_require__ (http://localhost:6006/runtime~main.iframe.bundle.js:28:33) at fn (http://localhost:6006/runtime~main.iframe.bundle.js:344:21)
can anyone help me how to do the setupWorker works in this versions?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions