Error with importing a library with npm

+1 to what @Leandro_Zubrezki said. The .node extension is for binary modules and they won’t work in the Packs Runtime. Sometimes you can use patch-package to prune dependencies that aren’t used in your code path (see here), but if you are generating an SVG it could be that the canvas package is truly required and can’t be removed.

1 Like