question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Firebase 8

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cabellocommented, Feb 25, 2022

@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 🙇

1reaction
cabellocommented, Jan 21, 2022

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

Screen Shot 2022-01-21 at 8 19 56 AM

I will put a PR for this next following your suggestion.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found