lsongdev / node-bluetooth

:large_blue_diamond:😬Bluetooth serial port communication for Node.js
https://npmjs.org/node-bluetooth
Other
197 stars 56 forks source link

Missing symbol? #28

Open htbrown opened 5 years ago

htbrown commented 5 years ago

Hey, I'm trying to make an electron app that searches for bluetooth devices as a test to see if I can get it to work, but I get this error when running my code.

dyld: lazy symbol binding failed: Symbol not found: __ZN2v811HandleScope12CreateHandleEPNS_8internal10HeapObjectEPNS1_6ObjectE
  Referenced from: /Volumes/HaydenDrive/Code/Personal/Applications/Bluetooth/node_modules/node-bluetooth/build/Release/BluetoothSerialPort.node
  Expected in: flat namespace

I'm not entirely sure what to do, as I've only just built the package using NPM. I'm running macOS 10.14.03, using the v4.0 of electron.

Here's my code in the js file linked to my index.html:

    const bl = require('node-bluetooth');
    const device = new bl.DeviceINQ();
    device
        .on('finished',  console.log.bind(console, 'finished'))
        .on('found', function found(address, name){
            let row = deviceTable.insertRow()
            let devName = row.insertCell(0);
            let devMAC = row.insertCell(1);
            devName.innerHTML = name;
            devMAC.innerHTML = address;
        }).scan();