Closed jfilby closed 1 year ago
Maybe you need Webpack node-loader? Or something similar but for Babel
I'm using an npm called nextjs-node-loader, which gets further, but the module doesn't load because I don't have glibc_2.34.
The requirement for glibc_2.34 seems to come from the compiled addon.
I've retested and I get the same error in the package directory where I use Denim. I'm not sure if this is from a snap that auto-updated itself and broke something. I'll investigate some more. It worked a day or two ago.
Loading with Bun is also suddenly broken, with an undefined symbol: cmdLine
error.
I've now updated to Node v20 and I get the same error that Bun gives, but with a little bit more context before that:
node:internal/modules/cjs/loader:1343
return process.dlopen(module, path.toNamespacedPath(filename));
Error: /full-path/...my-module.node: undefined symbol: cmdLine
I commented out everything and slow uncommented various lines in my Nim package. It turns out that importing jester causes this problem. I use it in some shared code. It's possible to not use it, but it will take me a bit of time to separate the code. I'll continue on this tomorrow.
I got it working by:
I successfully build an add-on, but when I copy it to an external project, I can't get it to load. This is a Next.js project. Every technique I try encounters a different error.
Do I need to wait for the ability to build an npm from the add-on?