I\'m using create-react-app with an express server.
create-react-app has a pre-configured ServiceWorker that caches local assets (https://github.com/fac
create-react-app
In my case, for Vue I needed to generate the mockServiceWorker.js in the public directory using the command-line tool as described here:
https://mswjs.io/docs/getting-started/integrate/browser
This was not clear from the samples to me. Specifically the CLI command to run is:
npx msw init ./public