Open uPaymeiFixit opened 4 months ago
I've solved this by using a version of NodeJS from nvm instead of Nix. I suspect this matters because the version sourced from Nix does not build native node modules using gcc from Xcode. Here is a relevant issue on nixpkgs.
Environment Information
Steps to Reproduce Simply
require("node-rdkafka")
node-rdkafka Configuration Settings n/a
Additional context As you can see from the screenshot, I have freshly installed node-rdkafka, and upon requiring it (whether via a repl or in a project) I get this
dyld[*]: missing symbol called
error before the program crashes. I have libllvm and gcc installed via nix.If I run
env DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1 DYLD_PRINT_WARNINGS=1 node -p 'require("node-rdkafka")'
I get the following: