I'm trying to set up a Back4App backend in a react native expo 45 app. I keep getting a
[Unhandled promise rejection: ReferenceError: Can't find variable: indexedDB]
warning related to the async-storage and Parse import.
import AsyncStorage from "@react-native-async-storage/async-storage";
const Parse = require("parse/react-native.js");
Parse.setAsyncStorage(AsyncStorage);
The warning points to a function in
node_modules\parse\node_modules\idb-keyval\dist\compat.cjs
function createStore(dbName, storeName) {
var dbp = safariFix__default['default']().then(function () {
var request = indexedDB.open(dbName);
request.onupgradeneeded = function () {
return request.result.createObjectStore(storeName);
};
return promisifyRequest(request);
});
return function (txMode, callback) {
return dbp.then(function (db) {
return callback(db.transaction(storeName, txMode).objectStore(storeName));
});
};
}
I find almost no results with searches so I don't even know where to begin troubleshooting. Am I missing something or can this just be ignored?