Firebase SDK version: 8.2.3 (This has happened since Firebase package version 8.1.2 :: Last functioning version was Firebase 8.1.1, specifically with @firebase/firestore version somewhere between 2.0.5 and 2.1.0)
@firebase/firestore 2.1.0 stopped working for us, and so we are stuck at Firebase version of 8.1.1
We have been using a custom IndexedDB implementation in our React native app (over 1 year), and it has worked with Firestore reliably, providing offline persistence (a similar hack is via expo-firestore-offline-persistence npm package). However, with Firestore version 8.1.2 we found that importing 'firebase/firestore' results in the memory-only build being loaded, which throws an error immediately when we try to enable persistence.
Firebase documentation for release 7.13.0, which contained the first release for the memory-only build, explicity says that "It is available under a special import path" of 'firebase/firestore/memory'. However, ever since firestore version around 2.1.0, that path also doesn't exist (the build folder at dist/memory/rn does not exist). We believe this is due to some error in the packaging process for the firestore build, and so decided to post this issue here.
Steps to reproduce:
Make the React native environment have a functioning IndexedDB implementation
Try to enable offline persistence. This would fail for "firebase" package version above 8.1.1 due to the firestore build defaulting to the memory-only build for react native.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
We have been using a custom IndexedDB implementation in our React native app (over 1 year), and it has worked with Firestore reliably, providing offline persistence (a similar hack is via expo-firestore-offline-persistence npm package). However, with Firestore version 8.1.2 we found that importing 'firebase/firestore' results in the memory-only build being loaded, which throws an error immediately when we try to enable persistence.
Firebase documentation for release 7.13.0, which contained the first release for the memory-only build, explicity says that "It is available under a special import path" of 'firebase/firestore/memory'. However, ever since firestore version around 2.1.0, that path also doesn't exist (the build folder at dist/memory/rn does not exist). We believe this is due to some error in the packaging process for the firestore build, and so decided to post this issue here.
Steps to reproduce:
Relevant Code:
(React-Native Expo)