Closed Makio64 closed 2 months ago
Please ensure you are using the latest version, currently v0.33.5.
I'm using the v0.33.5
This looks more like an Electron packaging issue rather than a yarn installation issue, based partly on the .app/Contents/...
path in the screenshot.
The use of yarn v1 at install time is tested via a post-release CI job:
https://github.com/lovell/sharp/actions/runs/10419935381/job/28860731321
If you still require help, please provide a minimal sample repo that allows someone else to reproduce.
Feature request
What are you trying to achieve?
When using sharp in electron I got an error. In previous version the error message indicate the commands to fix the issue on
npm
andyarn
, now only fornpm
What would you expect the API to look like?
Write the solution for
yarn
:yarn add sharp --ignore-engines
Ideally for pnpm as well.What alternatives have you considered?
Would be great if it works out of the box on electron but it seems difficult.
Please provide sample image(s) that help explain this feature
When using sharp in Electron :
Uncaught Exception: Error: Could not load the "sharp" module using the darwin-arm64 runtime
after
yarn add sharp --ignore-engines
it works.