The app does appear to initially compile correctly, the only time the error message is thrown is when running the test on an image. The program compiles and works correctly on OS X, but always halts operations when used on Windows after one clicks the button to alter the image. I am working on a desktop application on Windows using Electron and Sharp. Npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD Node: 14.17.1 - C:\Program Files\nodejs\node.EXE What is the output of running npx envinfo -binaries -system?ĬPU: (4) 圆4 AMD Ryzen 3 3250U with Radeon Graphics nd('request-mainprocess-action', Data) Īre you able to provide a sample image that helps explain the problem? // if a listener has been set, then the main process // Send information to the main process // Some data that will be sent to the main process Error message is only thrown when the button is pressed calling the Sharp methods.Īre you able to provide a minimal, standalone code sample, without other dependencies, that demonstrates this problem?Īsync function savePhotoFromURL(photo_url) = require('electron') Instead, the Electron console throws an error saying that sharp did not install correctly, though the app does compile. Image should be modified and a new output file generated. Press the "Click to run Sharp test" button and check the Electron console log.Create a new folder called images and place a JPEG file into it.Version being used is the most recent one (both above commands match in version output): V0.28.3 Are you using the latest version? Is the version currently in use as reported by npm ls sharp the same as the latest version as reported by npm view sharp dist-tags.latest?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |