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
How frequently does the bug occur?
Always
Description
I've just upgraded my codebase to node v23. After running
yarn installandyarn start, my Node app using Realm does not start anymore sayingCannot find module '/home/app/node_modules/realm/prebuilds/node/realm.node'.And indeed,
ls -la node_modules/realm/prebuildsshows onlyandroidandapple.When I switch back to node v22 and run
yarn installandyarn startagain, it works asnode_modules/realm/prebuildscontainsandroid,appleandnode.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.jsonhavingrealm@12.14.1as a dependency.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