nuxt-community / firebase-module

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

Firebase 8^ supported? #433

Closed horacioibrahim closed 3 years ago

horacioibrahim commented 3 years ago

Hi dears,

I have problem with warning messages. I saw in stackoverflow this information: https://stackoverflow.com/questions/64545862/upgrade-to-firebase-js-8-0-0-attempted-import-error-app-is-not-exported-from

Thanks.

lupas commented 3 years ago

Hi @horacioibrahim

v8+ is supported, yes.

Please provide more details and example code (e.g. your nuxt.config.json) to your problem. We cannot guess what your problem is just based on a link.

If you follow the Getting Started Guide you should not run into any issues with installing Firebase.

horacioibrahim commented 3 years ago

Hi lupas!

The problem not broken the app, but raises this messages below where main.js import this logic:

*import as firebase from 'firebase/app'**

 WARN  Compiled with 3 warnings                                                                                                                                                   friendly-errors 16:01:34

 WARN  in ../prod/server/nuxt/firebase-module/main.js                                                                                                                             friendly-errors 16:01:34

"export 'apps' (imported as 'firebase') was not found in 'firebase/app'                                                                                                           friendly-errors 16:01:34
                                                                                                                                                                                  friendly-errors 16:01:34

 WARN  in ../prod/server/nuxt/firebase-module/main.js                                                                                                                             friendly-errors 16:01:34

"export 'firestore' (imported as 'firebase') was not found in 'firebase/app'                                                                                                      friendly-errors 16:01:34
                                                                                                                                                                                  friendly-errors 16:01:34

 WARN  in ../prod/server/nuxt/firebase-module/main.js                                                                                                                             friendly-errors 16:01:34

"export 'initializeApp' (imported as 'firebase') was not found in 'firebase/app'
horacioibrahim commented 3 years ago

Solved. Thanks for reply.