-
-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React native SDK error: While trying to resolve module idb-keyval
from file
#1441
Comments
Thanks for opening this issue!
|
Does this issue belong to https://github.com/parse-community/parse-react? |
parse/react-native.js is a under parse sdk |
I got this same issue since upgrading to 3.4.1, its only a problem when used in a react-native project. |
The changelog says:
Maybe that explains the error log:
See this change and the readme. |
@zealmurapa I got the same issue recently and have fixed it using this. If it worked, it should bring you a new error "Can't find variable: indexedDB", which I've opened here. |
I am having the same error with expo & typescript and I have no metro config. Do I create a metro.config.ts file or .js file then add support for .cjs and .mjs? |
Have you been able to fix this? I'm having the same errors |
@ndukachukz I having the same issue. |
Closing via #1569 |
New Issue Checklist
Issue Description
I am suddenly getting an error with the new release of parse and including the old ones too regarding
idb-keyval
. I see that the latest release sought to address that bug, however it doesn't seem to go away.Steps to reproduce
import Server from "parse/react-native.js";
import AsyncStorage from '@react-native-async-storage/async-storage';
Server.setAsyncStorage(AsyncStorage);
Server.initialize(Constants.APP_ID, Constants.JAVASCRIPT_KEY);
Server.serverURL = Constants.APP_API;
then try run the app in the emulator
Actual Outcome
Check the logs below
Expected Outcome
that the react native build should run as usual following: (import Server from "parse/react-native.js";)
Environment
Node JS 12 on Mac iOS Big sur
Server
5.0.0-beta.4
Mac OS
Local
Database
MongoDB
4.2
MongoDB Atlas
Client
3.4.1
Logs
iOS Bundling failed 10162ms
While trying to resolve module
idb-keyval
from file/node_modules/parse/lib/react-native/IndexedDBStorageController.js
, the package/node_modules/idb-keyval/package.json
was successfully found. However, this package itself specifies amain
module field that could not be resolved (/node_modules/idb-keyval/dist/compat.cjs
. Indeed, none of these files exist:The text was updated successfully, but these errors were encountered: