maros.studenicM
Convex Community9mo ago
2 replies
maros.studenic

sharp version v34.1 error but sharp v33.5 working

Hey, I just encountered error when trying shapr on convex.

I had this error when i had sharp with version v34.1 in my package.json, but when i changed it to 33.5 it disapperaed.

So there need to be some update for glib in node environment probably. ( missing GLIBCXX_3.4.26)
✖ Error fetching POST https://charming-penguin-16.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
Loading the pushed modules encountered the following
error:
Uncaught Failed to analyze r2_helpers.js: Could not load the "sharp" module using the linux-arm64 runtime
ERR_DLOPEN_FAILED: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /var/task/source/6aaee8a9-beac-406d-aa17-ce183163d2f9/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node)
Possible solutions:
- Ensure optional dependencies can be installed:
npm install --include=optional sharp
- Ensure your package manager supports multi-platform installation:
See https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
npm install --os=linux --cpu=arm64 sharp
- Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
sharp
High performance Node.js image processing. The fastest module to resize JPEG, PNG, WebP and TIFF images.
Was this page helpful?