firebase / friendlyeats-web

Apache License 2.0
480 stars 410 forks source link

nextjs-end breaks on refreshing the page due to auth-service-worker error #294

Open Hr1t1k opened 5 months ago

Hr1t1k commented 5 months ago

I cloned the nextjs-end locally and followed all the steps mentioned correctly also set up firebase hosting , Everything works correctly when the website is opened for the 1st time .

When the website is refreshed after some time it throws an error

Uncaught (in promise) FirebaseError: Firebase: Need to provide options, when not being deployed to hosting via source. (app/no-options). at initializeApp (auth-service-worker.js?firebaseConfig=%7B%22apiKey%22%3A%22AIzaSy....

But when I unregister the service worker by going on application tab in dev tools , then it works fine for some time ,

ESRuth commented 5 months ago

Issue is better described in https://github.com/firebase/friendlyeats-web/issues/295.