我在使用库生活垃圾时遇到了这个错误。
[MSW] Failed to register the Service Worker:
Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost/mockServiceWorker.js'): Operation has been aborted

重要的是,,如果我使用另一个浏览器或不同的Chrome配置文件,它将运行良好的。
我试过清除缓存,但没有帮助。如何解决这个问题?
发布于 2022-03-28 06:43:03
转到chrome://flags/#allow-insecure-localhost,将“允许从localhost加载的资源的无效证书”设置为启用的。
我用这个搜索解决了这个问题:

https://stackoverflow.com/questions/71643353
复制相似问题