When I run my Electron application on macOS I get such errors right on start of my application, without even calling sharp():
dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/appleuser/Documents/work/taggy/taggy-desktop/node_modules/sharp/build/Release/sharp.node
Expected in: flat namespace
dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEiNS_19ConstructorBehaviorENS_14SideEffectTypeE
Referenced from: /Users/appleuser/Documents/work/taggy/taggy-desktop/node_modules/sharp/build/Release/sharp.node
Expected in: flat namespace
sharp v0.21.0
Hello, did you see #1384 ?
@lovell sorry, did see it :(
I have the same issue. Any recommendations on what module should be included in the electron-rebuild command?
Got it. Just rebuilding sharp made it work:
"scripts": {
"rebuild": "electron-rebuild -f -w sharp"
}
electron-rebuild -f -w sharp did not work for me for electron 4.0 :(
For me it's the same as for @EKami, electron-rebuild leads to the above mentioned bug for the just released Electron 4.0. But maybe electron-rebuild does not yet support the 4.0 release?
The same for Electron 3.1.0
I think we'll need to open a new issue guys, this one is closed and no one will pay attention to it
Most helpful comment
electron-rebuild -f -w sharpdid not work for me for electron 4.0 :(