Skip to content

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

Closed
@chillaxdev

Description

@chillaxdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions