Skip to content
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

Unable to resolve "../../../realm/lib/browser$1" from "node_modules/@realm/react/dist/index.cjs" #6793

Open
seansongss opened this issue Jul 17, 2024 · 3 comments

Comments

@seansongss
Copy link

How frequently does the bug occur?

Always

Description

Realm worked fine but since updating to new version it gives error. I am using Expo with npm and have version of "realm": "^12.11.1", "@realm/react": "^0.8.0", "expo": "^51.0.20".

Stacktrace & log output

Unable to resolve "../../../realm/lib/browser$1" from "node_modules/@realm/react/dist/index.cjs"

Can you reproduce the bug?

Always

Reproduction Steps

npm run or npm run ios both fails to load the app

Version

12.11.1

What services are you using?

Atlas Device Sync

Are you using encryption?

-- select --

Platform OS and version(s)

ios

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

Copy link

sync-by-unito bot commented Jul 17, 2024

➤ PM Bot commented:

Jira ticket: RJS-2864

@kraenhansen
Copy link
Member

kraenhansen commented Jul 17, 2024

What package did you upgrade and from what version? Also, can you share your Metro config? I'm interested in learning if you have special configuration for the resolver.

@seansongss
Copy link
Author

// Learn more https://docs.expo.dev/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');

module.exports = getDefaultConfig(__dirname);

this is my metro.config.js which I directly copied from the Expo example.

I have upgraded @realm/react from 0.7.0 to 0.8.0 and it is causing me the error message. When I run through simulator, it gives none of the files exist in the path. Now I have downgraded to 0.7.0 which works perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants