Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
steltz opened this issue Oct 27, 2020 · 5 comments
Closed

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

steltz opened this issue Oct 27, 2020 · 5 comments
Assignees
Labels
bug Something isn't working feature New feature or request
Milestone

Comments

@steltz
Copy link

steltz commented Oct 27, 2020

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
Copy link

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

@HamoBoker
Copy link

HamoBoker commented Oct 27, 2020

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
Copy link

halilduygulu commented Oct 28, 2020

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
Copy link
Member

lupas commented Oct 28, 2020

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
Copy link
Member

lupas commented Oct 28, 2020

Fixed in 4ae48b5

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

@lupas lupas added bug Something isn't working feature New feature or request labels Oct 28, 2020
@lupas lupas added this to the 7.0.0 milestone Oct 28, 2020
@lupas lupas self-assigned this Oct 28, 2020
@lupas lupas closed this as completed Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants