Skip to content
Discussion options

You must be logged in to vote

Hi, @marinamas.

Yes, MSW works with Create React App. The error that you're getting is google-able and means you have forgotten to generate the worker script. Double-check that the script is in your public directory and you are serving it correctly.

/mockServiceWorker.js gives 404 right now. If you're using a custom homepage property in package.json, also see this recipe.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Comment options

You must be logged in to vote
1 reply
@kettanaito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants