Open jonadeline opened 3 years ago
Hi @jonadeline , The Firebase client SDK is disabled on server.
You need to activate serverLogin
or credential option function for enable it : https://firebase.nuxtjs.org/service-options/auth#serverlogin
But this feature is experimental.
Did you add configure workbox? Adding
workbox: {
importScripts: ['/firebase-auth-sw.js'],
dev: process.env.NODE_ENV === 'development',
},
to the pwa
section of nuxt.config.js solved this issue for me.
More on that here.
Nevermind. After clearing the site data and hard reloading, the error's back :(
Hi all !
I'm experimenting an issue when calling a firebase functions in the Nuxt.js
asyncData
hook in my page (i also tried with thefetch
hook and same error). I'm getting the following error from Firebase :I also tried to run the same function client side only (as you can see in the code below) and its working like a charm so I don't understand what I'm doing wrong on the server side. Any help would be greatly appreciated. Thanks in advance.
Here is the code of my page :
And my firebase config in the
nuxt.config.js