snoww
CCConvex Community
•Created by snoww on 4/11/2025 in #support-community
sharp won't work
i'm about to go to sleep so sorry for lack of detail, will update in the morning
logs
using pnpm,
"sharp": "^0.34.1",
[convex] - Preparing Convex functions...
[convex]
[convex] ✖ Error: Unable to start push to https://...-...-47.convex.cloud
[convex] ✖ Error fetching POST https://...-...-47.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
[convex] Uncaught Failed to analyze addImageSizing.js: Could not load the "sharp" module using the linux-arm64 runtime
[convex] ERR_DLOPEN_FAILED: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/external_deps/5f59b96c-e51c-4f71-9d87-a1e1d93dba62/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node)
[convex] Possible solutions:
[convex] - Ensure optional dependencies can be installed:
[convex] npm install --include=optional sharp
[convex] - Ensure your package manager supports multi-platform installation:
[convex] See https://sharp.pixelplumbing.com/install#cross-platform
[convex] - Add platform-specific dependencies:
[convex] npm install --os=linux --cpu=arm64 sharp
[convex] - Consult the installation documentation:
[convex] See https://sharp.pixelplumbing.com/install
[convex] - Preparing Convex functions...
[convex]
[convex] ✖ Error: Unable to start push to https://...-...-47.convex.cloud
[convex] ✖ Error fetching POST https://...-...-47.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing:
[convex] Uncaught Failed to analyze addImageSizing.js: Could not load the "sharp" module using the linux-arm64 runtime
[convex] ERR_DLOPEN_FAILED: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /tmp/external_deps/5f59b96c-e51c-4f71-9d87-a1e1d93dba62/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node)
[convex] Possible solutions:
[convex] - Ensure optional dependencies can be installed:
[convex] npm install --include=optional sharp
[convex] - Ensure your package manager supports multi-platform installation:
[convex] See https://sharp.pixelplumbing.com/install#cross-platform
[convex] - Add platform-specific dependencies:
[convex] npm install --os=linux --cpu=arm64 sharp
[convex] - Consult the installation documentation:
[convex] See https://sharp.pixelplumbing.com/install
12 replies