Nuxt.js Ssr With Firebase - Referenceerror: Navigator Is Not Defined
I've made a simple web app with Nuxt(SSR) and firebase(firestore and hosting). It has some pages like index, about, contact and text editor. When I do npm run build, it works with
Hey dont know if this helps, I ran into the same issue using NextJs. Here is how I solved it. I wasnt using it in any of my SSR code either though so idk what happened.
const analytics = (): firebase.analytics.Analytics => firebase.analytics();
Then in your code to use it
analytics().logEvent();
Post a Comment for "Nuxt.js Ssr With Firebase - Referenceerror: Navigator Is Not Defined"