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 React Native projet, I got this error when initializing parse.
Steps to reproduce
import AsyncStorage from '@react-native-async-storage/async-storage';
import Parse from 'parse/react-native';
Parse.setAsyncStorage(AsyncStorage);
Parse.initialize('my-app);
Parse.serverURL = 'http://localhost:8085/parse';
Actual Outcome
Unhandled promise rejection: ReferenceError: Can't find variable: indexedDB
Expected Outcome
No errors and warnings
Environment
Server
- Parse Server version:
5.2.4
- Operating system:
Windows 10
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Local
Database
- System (MongoDB or Postgres):
MongoDB
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Local
Client
- Parse JS SDK version:
3.4.4
Logs
[Unhandled promise rejection: ReferenceError: Can't find variable: indexedDB] at node_modules\idb-keyval\dist\compat.cjs:35:27 in safariFix__default._default.then$argument_0 at node_modules\promise\setimmediate\core.js:37:13 in tryCallOne at node_modules\promise\setimmediate\core.js:123:24 in setImmediate$argument_0 at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:248:12 in _allocateCallback$argument_0 at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:112:14 in _callTimer at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:162:14 in _callReactNativeMicrotasksPass at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:413:41 in callReactNativeMicrotasks at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:391:6 in __callReactNativeMicrotasks at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:133:6 in __guard$argument_0 at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:368:10 in __guardat node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:132:4 in flushedQueue