Support Firebase 8
See original GitHub issueWhat is the current behavior?
The import is done using import * as firebase from "firebase/app";
.
Firebase 8.0 changes this to the default import, import firebase from "firebase/app"
.
As such, there are typing errors.
Argument of type 'typeof firebase' is not assignable to parameter of type 'typeof import("/home/metamist/dev/app-next/web/node_modules/firebase/index")'.
Property 'firebase' is missing in type 'typeof firebase' but required in type 'typeof import("/home/metamist/dev/app-next/web/node_modules/firebase/index")'.ts(2345)
What is the expected behavior? No typing errors should occur, and the import should be changed to the default.
Which version of redux-firestore are you using? What about other dependencies? redux-firestore 0.14.0
Which environments/browsers are affected by this issue? Did this work in previous versions or setups? Using with firebase 8
Minimal demo to reproduce issue (using codesandbox or similar) No need, it is easy to figure out why this happens. The breaking change in Firebase 8 is that you should use the default import.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Upgrade from version 8 to the modular Web SDK - Firebase
By working through the examples, you can master the concepts and practical steps required to upgrade all supported Firebase Web SDKs. About the...
Read more >Using Firebase - Expo Documentation
A guide on getting started and using Firebase JS SDK and React Native Firebase library. Firebase is a Backend-as-a-Service (BaaS) app development platform...
Read more >firebase-ios-sdk/SwiftPackageManager.md at master - GitHub
Swift Package Manager for Firebase. Introduction. Starting with the 8.0.0 release, Firebase officially supports installation via Swift Package Manager.
Read more >How I got Expo and react-native-firebase working in one ...
Use Firebase Web JS SDK; Use Expo bare workflow. First way is easy, but limited (only few modules are supported) and slower, because...
Read more >Refactor a React app with the new Firebase v9.x Web SDK
VERSION 8 import firebase from 'firebase/app'; import 'firebase/auth'; ... which augments authentication service to the firebase namespace, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@prescottprue would you mind taking a look at the PR please, it’s one line change and it would unlock us moving from firebase 7 to 8. Thank you 🙇
Found this issue while trying to add appCheck to my app. App was using v7, appCheck was introduced on v8, I followed the release notes: https://firebase.google.com/support/release-notes/js#version_800_-_october_26_2020
I will put a PR for this next following your suggestion.