-
Notifications
You must be signed in to change notification settings - Fork 27
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
Jimp error when using this package in the electron project's main process (background.js) #18
Comments
I find the solution, but not perfect.
with Jimp.default.read() So just Then I am curious about how it works under the nodejs.
without I fork this repo and audit to "dependencies": {
"replace-color": "^2.3.0",
} to "dependencies": {
"replace-color": "LehaoLin/replace-color",
} then run |
Error shown as below
And my code in the
background.js
isI trace the error message, and found the error is happened when reading the image.
which is in the
node_modules/replace-color/src/replace-color.js
line 43I tried many ways including add
async await
stuff to make the process sync, but it is still not working.Then no idea how to solve it.
The text was updated successfully, but these errors were encountered: