Parse-SDK-JS icon indicating copy to clipboard operation
Parse-SDK-JS copied to clipboard

React Native (Parse JS API Issue) "Can't find variable: indexedDB"

Open chillaxdev opened this issue 3 years ago • 4 comments

New Issue Checklist

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

Issue

chillaxdev avatar Jan 11 '22 14:01 chillaxdev

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 avatar Jan 19 '22 18:01 ndukachukz

@ndukachukz You can temporarily use version 3.4.0 to avoid this issue.

chillaxdev avatar Jan 21 '22 13:01 chillaxdev

Is there a fix about this issue? It has been here for a while

tiavina-mika avatar Sep 17 '22 09:09 tiavina-mika

Closing via https://github.com/parse-community/Parse-SDK-JS/pull/1569

dplewis avatar Jan 27 '23 20:01 dplewis