Closed Ararat-Bakaryan closed 3 days ago
After building the app using electron-forge and vite-plugin, I am getting this issue when launching the app, please help resolve the problem!
I have the same problem, too. How can I solve the problem?
building the app using electron-forge and vite-plugin
https://github.com/lovell/sharp/blob/hat/docs/install.md#electron https://github.com/lovell/sharp/blob/hat/docs/install.md#vite
building the app using electron-forge and vite-plugin
https://github.com/lovell/sharp/blob/hat/docs/install.md#electron https://github.com/lovell/sharp/blob/hat/docs/install.md#vite
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 Possible solutions:
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 https://github.com/electron/forge/issues/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: