-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Could not load the "sharp" module using the linux-x64 runtime #4278
Comments
After building the app using electron-forge and vite-plugin, I am getting this issue when launching the app, please help resolve the problem! |
This comment was marked as off-topic.
This comment was marked as off-topic.
https://github.com/lovell/sharp/blob/hat/docs/install.md#electron |
I followed the instructions and now I get this: Error: Could not load the "sharp" module using the linux-x64 runtime |
Full log Error: Could not load the "sharp" module using the linux-x64 runtime
|
Using official electron-forge documentation for configuration: https://www.electronforge.io/config/plugins/vite |
Hi @lovell thanks for the quick reply! Unfortunately the problem remains do you have any suggestions? |
If you're using electron-forge, watch out for electron/forge#1250 If you're still having problems, please provide a minimal, complete, standalone repo that allows someone else to reproduce. |
@lovell Thank you very much for your answer, I have already changed the build to electron-builder and everything is working. |
Error Loading Sharp Module on Linux x64
Description
When running the application, encountering a fatal error preventing the Sharp module from loading on Linux x64 platform. The error occurs in the main process and appears to be related to dynamic module loading configuration in Rollup.
Error Message
Multiple failed require attempts:
../src/build/Release/sharp-linux-x64.node
../src/build/Release/sharp-wasm32.node
@img/sharp-linux-x64/sharp.node
@img/sharp-wasm32/sharp.node
Environment
/usr/lib/electron-uniq/resources/app.asar/.vite/build/main.js
Additional warning observed:
Attempted Solutions
None yet, but Sharp's documentation suggests:
The text was updated successfully, but these errors were encountered: