Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use of sharp #265

Open
mobob opened this issue Oct 11, 2024 · 0 comments
Open

use of sharp #265

mobob opened this issue Oct 11, 2024 · 0 comments

Comments

@mobob
Copy link

mobob commented Oct 11, 2024

Hey! Not a real issue as i know your stuff is working and is lovely...

But one of the recent version bumps started including sharp and sharp is a bit of a native beast, not as lightweight a fit running in AWS lambda for instance (and hence this update is not compatible with our env anymore). Here is the stack if you're curious:

app-logs        | 2024-10-11T15:09:18 {"timestamp":"2024-10-11T15:09:18.406Z",
"level":"ERROR","message":{"errorType":"Error","errorMessage":"Could not load 
the \"sharp\" module using the linux-x64 runtime\nPossible solutions:\n- Ensure 
optional dependencies can be installed:\n    npm install --include=optional 
sharp\n- Ensure your package manager supports multi-platform installation:\n    
See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific 
dependencies:\n    npm install --os=linux --cpu=x64 sharp\n- Consult the installation 
documentation:\n    See https://sharp.pixelplumbing.com/install","stackTrace":["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 node_modules/.pnpm/[email protected]/node_modules/sharp/lib/sharp.js (/var/task/index.js:20894:13)"," 
   at __require (/var/task/index.js:9:50)","    
at node_modules/.pnpm/[email protected]/node_modules/sharp/lib/constructor.js (/var/task/index.js:20906:5)","
    at __require (/var/task/index.js:9:50)","    
at node_modules/.pnpm/[email protected]/node_modules/sharp/lib/index.js (/var/task/index.js:25095:17)"," 
   at __require (/var/task/index.js:9:50)","   
 at node_modules/.pnpm/[email protected]/node_modules/ndarray-pixels/dist/ndarray-pixels-node.cjs 
(/var/task/index.js:26125:17)","  
  at __require (/var/task/index.js:9:50)","   
 at node_modules/.pnpm/[email protected]/node_modules/colorthief/dist/color-thief.js
 (/var/task/index.js:29300:25)","    at __require (/var/task/index.js:9:50)"]}}

I plan on pinning at 2.4 for now but may migrate away/fork - just wanted to post for awareness or any tips or suggestions you have. Love your lib so hope to keep using!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant