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

Firebase v9 #18

Open
Nicolooo opened this issue Mar 5, 2022 · 3 comments
Open

Firebase v9 #18

Nicolooo opened this issue Mar 5, 2022 · 3 comments

Comments

@Nicolooo
Copy link

Nicolooo commented Mar 5, 2022

hello, this code is not working on firebase v9. can you somehow update the code to fit the needs of the new firebase?
thanks in advance,
Nick

@mjensen6
Copy link

Yeah the issue for me is around the firebase init section... looks like they changed a lot around that in V9. Here is a somewhat useful link I found in the mean time (if you have typescript setup) Firebase With Next.js in V9

I am new to Fireship and this is my first project. Great content and explanations from Jeff, but with everything he has out it has to be tough to manage all the updates. Best to match up your dependencies with his by copying this repo's package.json when you start. Your app will be a little behind, but for the purpose of learning about Firebase it is more than sufficient :)

@shanliangc
Copy link

shanliangc commented Apr 27, 2022

I've found out that the easiest way to make codes from firbase.js works is that
import firebase from 'firebase/compat/app'; import 'firebase/compat/auth'; import 'firebase/compat/firestore'; import 'firebase/compat/storage';
using "firebase/compat/" instead of "firebase/".
Since firebase v9 package has a compatible sub pack for v8, you don't need to downgrade or reinstall firebase@8

@thedevp
Copy link

thedevp commented Nov 30, 2022

@shanliangc Thank you for the answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants