nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
640 stars 98 forks source link

export was not found in 'firebase/app' #349

Closed steltz closed 3 years ago

steltz commented 3 years ago

I'm getting the following warning messages in the console:

"export 'apps' (imported as 'firebase') was not found in 'firebase/app' "export 'auth' (imported as 'firebase') was not found in 'firebase/app' "export 'initializeApp' (imported as 'firebase') was not found in 'firebase/app'

The app won't load in browser with the following error:

TypeError: Cannot read property 'length' of undefined

I believe its bc Firebase isn't initialized correctly, anyone have any pointers?

Here is my nuxt.config.js:

  modules: [
    // https://go.nuxtjs.dev/axios
    '@nuxtjs/axios',
    // https://go.nuxtjs.dev/pwa
    '@nuxtjs/pwa',
    // https://go.nuxtjs.dev/content
    '@nuxt/content',
    '@nuxtjs/firebase'
  ],

  firebase: {
    config: {
     ...
    },
    services: {
      auth: true
    }
  },
FougereBle commented 3 years ago

Try to install firebase@^7.17.1 package. npm install firebase@^7.17.1

HamoBoker commented 3 years ago

this issue happened to me also. firebase latest v8.0.0 causing this problem. i switched to v7.24.0 and everything works correctly

thanks to @FougereBle

halilduygulu commented 3 years ago

We need new release of this library to use firebase 8 version, imports are breaking change. https://firebase.google.com/support/release-notes/js

Any timeline for this? This firebase release was supposed to lower bundle size a bit, I am curious to try it.

lupas commented 3 years ago

Hey guys

Will try to release a new version within the next 2 days to fix this - hang in there! Until then the only solution is to use Firebase version < 8.0.0.

lupas commented 3 years ago

Fixed in https://github.com/nuxt-community/firebase-module/commit/4ae48b51bc35f007c89bcc46febeded30f288893

will be released in v7.0.0 in the coming days.