Skip to content

Missing prebuilds/node when using node v23 #6980

@c100k

Description

@c100k

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 realm@12.14.1 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions