.JPig 🐷
.JPig 🐷
DDeno
Created by .JPig 🐷 on 8/23/2024 in #help
Sharp using deno deploy
hello, is sharp compatible with deno deploy? in the npm page says it is, i tried deno in local and it works perfectly, but when i try to upload to deno deploy i get this error
UNCAUGHT_EXCEPTION

Error: Could not load the "sharp" module using the linux-x64 runtime
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=x64 sharp
- Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/sharp.js:113:9)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/sharp.js:116:4)
at Module._compile (node:module:729:34)
at Object.Module._extensions..js (node:module:743:10)
at Module.load (node:module:654:32)
at Function.Module._load (node:module:522:12)
at Module.require (node:module:673:19)
at require (node:module:787:16)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/constructor.js:10:1)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/constructor.js:454:4)
UNCAUGHT_EXCEPTION

Error: Could not load the "sharp" module using the linux-x64 runtime
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=x64 sharp
- Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/sharp.js:113:9)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/sharp.js:116:4)
at Module._compile (node:module:729:34)
at Object.Module._extensions..js (node:module:743:10)
at Module.load (node:module:654:32)
at Function.Module._load (node:module:522:12)
at Module.require (node:module:673:19)
at require (node:module:787:16)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/constructor.js:10:1)
at Object.<anonymous> (file:///node_modules/.deno/sharp@0.33.5/node_modules/sharp/lib/constructor.js:454:4)
2 replies