Unhandled Rejection (SecurityError): The operation is insecure. On a fresh create-react-app project

后端 未结 5 2379
孤街浪徒
孤街浪徒 2021-02-19 15:26

I created a new project with create-react-app then ran npm start then this showed up. https://imgur.com/a/3By9NCr

Using FF 69.0.3

5条回答
  •  抹茶落季
    2021-02-19 15:45

    This problem seems to only happen in Firefox. Edge worked fine.

    After creating the project, in index.js change:

    serviceWorker.register();
    //serviceWorker.unregister();
    

    Still trying to figure whose fault this is, but this should get you going.

提交回复
热议问题