You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't seem to work for me due to sharp having split libvips into a separate package that doesn't have a .node file so doesn't get extracted by pkg, so the actual sharp .node file fails to load as it fails to find it.
I did. But then at runtime, pkg only extract @img/sharp-{os}¢, without extracting @img/sharp-libvips-{os}`, so the node file fails finds the shared object in the libvips package.
Activity
robertsLando commentedon Oct 10, 2025
See example here: https://github.com/robertsLando/pkg-node-24-issue/blob/main/package.json#L12
segevfiner commentedon May 25, 2026
This doesn't seem to work for me due to sharp having split libvips into a separate package that doesn't have a
.nodefile so doesn't get extracted by pkg, so the actual sharp.nodefile fails to load as it fails to find it.robertsLando commentedon May 25, 2026
add that to assets then
segevfiner commentedon May 25, 2026
I did. But then at runtime, pkg only extract
@img/sharp-{os}¢, without extracting@img/sharp-libvips-{os}`, so the node file fails finds the shared object in the libvips package.