Error: dlopen(/Users/user/Developer/myapp/node_modules/realm/compiled/napi-v4_darwin_arm64/realm.node, 1): Symbol not found: __ZN5realm13BPlusTreeLeaf12bptree_eraseEmNS_4util11FunctionRefIFmPNS_13BPlusTreeNodeEmEEE
Referenced from: /Users/user/Developer/myapp/node_modules/realm/compiled/napi-v4_darwin_arm64/realm.node
Expected in: flat namespace
in /Users/user/Developer/myapp/node_modules/realm/compiled/napi-v4_darwin_arm64/realm.node
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at getRealmConstructor (/Users/user/Developer/myapp/node_modules/realm/lib/index.js:96:20)
at Object.<anonymous> (/Users/user/Developer/myapp/node_modules/realm/lib/index.js:120:26)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
I tried copying the script again from the website. Using sublime editor, I noticed it shows “<0x200b>” characters in all line breaks. That caused “SyntaxError: Invalid or unexpected token” when running it.
When deleting these characters and running I get:
Error: Cannot find module ‘/Users/user/Developer/myapp/node_modules/realm/compiled/napi-v4_darwin_x64/realm.node’
Thanks. I changed my path from “myapp” to “/myapp”. And now, the error is:
type: 'https://docs.realm.io/server/troubleshoot/errors#access-denied',
title: 'The path is invalid or current user has no access.',
status: 403,
detail: "A non-admin user is not allowed to create realms outside their home folder.
UserId: '6be4ad56cbb042082b0ac0ecc83b462d'. RealmPath: '/myapp'",
code: 614