I am trying to setup Back4App in React native and in the tutorial it says to import Parse like so: import Parse from "parse/react-native.js"
. But whenever I add this line I get the Error listed below. Anyone have an idea why this would happen? Thanks.
Error: While trying to resolve module idb-keyval
from file /Users/reidtaylor/Sessler2022/node_modules/parse/lib/react-native/IndexedDBStorageController.js
, the package /Users/reidtaylor/Sessler2022/node_modules/idb-keyval/package.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (/Users/reidtaylor/Sessler2022/node_modules/idb-keyval/dist/compat.cjs
. Indeed, none of these files exist:
I ended up fixing the issue by downgrading the version of the parse package to 3.4.0. Apparently others were having this problem as well.