You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did yarn add sharp and yarn electron-rebuild and it ran successfully. But I had this error: Error: The specified module could not be found. .... node_modules\sharp\build\Release\sharp.node
After I manually copied all *.dll files from sharp/vendor/lib folder to sharp/build/Release the error went away.
Did I miss some step in installation? Why weren't those files copied automatically?
The text was updated successfully, but these errors were encountered:
Oh, now I see. I looked more carefully at sharp/build/Release folder. When I do just yarn add sharp without rebuilding, those dlls are inside that folder, but I have an error about ABI version mismatch. And when I run electron-rebuild, it rebuilds only libvips-cpp.dll and does not copy other dlls from vendor.
I don't know about building process for node, but I think we could add a post-build event that would copy dlls into the right place to automate the process.
Btw, I didn't find verbose option for electron-rebuild (there is undocumented --log switch, but it doesn't work for me).
It seems to be unrelated to #1522.
What I have:
I did
yarn add sharp
andyarn electron-rebuild
and it ran successfully. But I had this error:Error: The specified module could not be found. .... node_modules\sharp\build\Release\sharp.node
After I manually copied all *.dll files from
sharp/vendor/lib
folder tosharp/build/Release
the error went away.Did I miss some step in installation? Why weren't those files copied automatically?
The text was updated successfully, but these errors were encountered: