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
Installation
High performance Node.js image processing. The fastest module to resize JPEG, PNG, WebP and TIFF images.
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
Hey! We're aware of the issue, we recommend you to keep using sharp 34.1 for the moment