Sharp: dyld: lazy symbol binding failed: Symbol not found

Created on 19 Oct 2018  路  8Comments  路  Source: lovell/sharp

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

question

Most helpful comment

electron-rebuild -f -w sharp did not work for me for electron 4.0 :(

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kachurovskiy picture kachurovskiy  路  3Comments

iq-dot picture iq-dot  路  3Comments

jaekunchoi picture jaekunchoi  路  3Comments

knoxcard picture knoxcard  路  3Comments

emmtte picture emmtte  路  3Comments