Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- 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