Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost:3000/mockServiceWorker.js'): The script has an unsupported MIME type ('text/html') #2505
-
|
Hello! After many tries, I could not figure out what the issue I am facing with. After configuring with MSW, it works perfectly in the first try. But after that, when I try to start MSW again for testing, I get the following issue:
I do many things to try to solve this issue, but it didn't help
Could you please help me? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, @f1nl0wt3ch. It appears that something in your app stops serving You have to investigate your app's setup and fix that. There's nothing we can/should do on the library side. |
Beta Was this translation helpful? Give feedback.

Hi, @f1nl0wt3ch.
It appears that something in your app stops serving
/mockServiceWorker.jsat some point.text/htmlMIME type means that now there's a 404 page under that resource instead of the worker script.You have to investigate your app's setup and fix that. There's nothing we can/should do on the library side.