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

Missing prebuilds/node when using node v23 #6980

Open
c100k opened this issue Mar 9, 2025 · 5 comments
Open

Missing prebuilds/node when using node v23 #6980

c100k opened this issue Mar 9, 2025 · 5 comments

Comments

@c100k
Copy link

c100k commented Mar 9, 2025

How frequently does the bug occur?

Always

Description

I've just upgraded my codebase to node v23. After running yarn install and yarn start, my Node app using Realm does not start anymore saying Cannot find module '/home/app/node_modules/realm/prebuilds/node/realm.node'.

And indeed, ls -la node_modules/realm/prebuilds shows only android and apple.

When I switch back to node v22 and run yarn install and yarn start again, it works as node_modules/realm/prebuilds contains android, apple and node.

Stacktrace & log output

Error: Cannot find module '/home/app/node_modules/realm/prebuilds/node/realm.node'.

Can you reproduce the bug?

Always

Reproduction Steps

Assuming you have a project with package.json having [email protected] as a dependency.

nvm use 22
rm -rf node_modules && yarn install
ls -la node_modules/realm/prebuilds # OK => contains android, apple and node

nvm use 23
rm -rf node_modules && yarn install
ls -la node_modules/realm/prebuilds # KO => contains android, apple but not node

Version

12.14.1

What services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

macOS Sequoia

Build environment

No response

Cocoapods version

No response

@brianomchugh
Copy link

FWIW I am on [email protected] and and [email protected] and do not have this issue.

@Acetyld
Copy link

Acetyld commented Mar 11, 2025

Same issue here, but your solution has no success
(Node:v22.14.0, Realm: 12.11.0)

nvm use 22
rm -rf node_modules && yarn install
ls -la node_modules/realm/prebuilds # OK => contains android, apple and (NOT NODE)

@Acetyld
Copy link

Acetyld commented Mar 20, 2025

Is there any update on this?

@kraenhansen
Copy link
Member

Is there any update on this?

None. If you're a paying customer hitting this issue, please ensure you reach out via the official support channels.

Any help from the community investigating, debugging and fixing this would be highly appreaciated.

@matthesjh
Copy link

We have the same issue after upgrading node from 22.13.1 to 22.14.0. Updating the prebuild-install dependency of Realm to version 7.1.3 (see related issue) fixed the problem for us. This can be done by running npm update prebuild-install and does not require an update of Realm.

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

5 participants