-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Undefined symbol on node 20 with nix #1295
Comments
Which version of glibc is installed on the system? |
|
Well, at least that should fit. _ZN2v88internal20CanHaveInternalFieldEi hints to some mismatch (missing entry point) within libs NodeJS is using / provided with. While sqlite3 utilizes the N-Api, better-sqlite3 uses the the v8 interface which has different requirements to the runtime. As with Alpine, I guess that the NodeJS build using node2nix is missing some dependencies or using outdated versions. Have you tried setting up some build environment on NixOS to compile the native module for better-sqlite3? |
In the meantime I've resorted to |
I was trying this library out in the REPL as it looked promising, but I seem to have run into some problem with the prebuilt stuff. For what it's worth, while
better-sqlite3
doesn't work,sqlite3
seems to work for me.I'm on node v20.5.0 packaged with Nix (using node2nix), and the machine is a NixOS VM on M1 (aarch64).
The text was updated successfully, but these errors were encountered: