node-pre-gyp install failing inside docker container
I'm building something that depends on a library with a native component (pulsar-client) and it doesn't work directly in deno because of #16164. I'm trying to use the workaround described in https://github.com/denoland/deno/issues/15611#issuecomment-1330469239 to manually run the dependency's
install
script. This works fine in macOS, but in a Docker build the command fails when afaict it's trying to untar what the NAPI glibc tarball.
The failing command is
And in the Docker build I get
I've put minimal project files and the rest of the logs in a gist https://gist.github.com/treuherz/8f7a6b408785252c2cb5abce08156f81
I don't understand how node-compatibility is supposed to work well enough to have any idea what's going wrong here.GitHub
Cannot import sqlite3 via npm and use it · Issue #15611 · denoland/...
I tried to import sqlite3 via npm. As shown below, import sqlite from "npm:sqlite3"; console.log(sqlite); deno --unstable run -A tmp.ts Then I got the following error. error: Uncaught Err...
0 Replies