Parse-SDK-JS
Parse-SDK-JS copied to clipboard
React Native (Parse JS API Issue) "Can't find variable: indexedDB"
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
In a react native project, attempting to set Parse async storage using JS API (setAsyncStorage) throws an error "Can't find variable: indexedDB". The Async Storage is from @react-native-async-storage/async-storage
Steps to reproduce
import AsyncStorage from '@react-native-async-storage/async-storage';
const Parse = require('parse/react-native.js');
Parse.setAsyncStorage(AsyncStorage);
I've reproduced the issue in this repository below with minimal code. https://github.com/chillaxdev/RNIDbIssue
Actual Outcome
Possible Unhandled Promise Rejection (id: 0): ReferenceError: Can't find variable: indexedDB
Expected Outcome
No errors & warnings.
Environment
Client
- Parse JS SDK version:
3.4.1
Logs
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
Have you been able to fix this yet. If you have pls share how you did it. I'm having thesame errors
@ndukachukz You can temporarily use version 3.4.0 to avoid this issue.
Is there a fix about this issue? It has been here for a while
Closing via https://github.com/parse-community/Parse-SDK-JS/pull/1569