Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Realm package requires realm-constants.json file but does not pack it #6270

Closed
bimusiek opened this issue Nov 21, 2023 · 3 comments
Closed

Comments

@bimusiek
Copy link
Contributor

bimusiek commented Nov 21, 2023

How frequently does the bug occur?

Always

Description

While trying to import Realm from 'realm;` I get an error:

error: Error: Unable to resolve module realm/realm-constants.json 

and by looking at the package.json of Realm, you can see it is not included in the files.

Stacktrace & log output

error: Error: Unable to resolve module realm/realm-constants.json from /Users/bimusiek/Developer/FreeYourMusic/app/node_modules/.pnpm/realm@12.3.0_react-native@0.71.11/node_modules/realm/dist/bundle.react-native.js:

Can you reproduce the bug?

Always

Reproduction Steps

Import Realm package in your project.

Version

12.3.-

What services are you using?

Atlas Device Sync

Are you using encryption?

No

Platform OS and version(s)

Electron

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

@kraenhansen
Copy link
Member

This is most likely a duplicate of #6144. I expect to merge and release a fix for this soon.

@kneth
Copy link
Contributor

kneth commented Nov 23, 2023

It is included in v12.3.1

@kneth kneth closed this as completed Nov 23, 2023
@bimusiek
Copy link
Contributor Author

@kneth I can confirm, it is fixed in 12.3.1 as I just bumped the Realm in our app. <3 Thank you!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants