Skip to content

error on Intel Mac #1

@nak435

Description

@nak435

I'm getting an error on my Intel Mac.
If you know the cause, please let me know.

nak435@MacBook-Pro-48 gan-node-sample-main % npm list
gan-node-sample@1.0.0 /Users/nak435/Downloads/gan-node-sample-main
├── gan-web-bluetooth@3.0.2
└── webbluetooth@3.3.2

nak435@MacBook-Pro-48 gan-node-sample-main % npm start

> gan-node-sample@1.0.0 start
> node index.js

=> Scanning for bluetooth devices, enter device number to connect:
/Users/nak435/Downloads/gan-node-sample-main/node_modules/gan-web-bluetooth/dist/cjs/index.cjs:1268
    var device = await navigator.bluetooth.requestDevice({
                                           ^

TypeError: Cannot read properties of undefined (reading 'requestDevice')
    at Object.connectGanCube (/Users/nak435/Downloads/gan-node-sample-main/node_modules/gan-web-bluetooth/dist/cjs/index.cjs:1268:44)
    at main (/Users/nak435/Downloads/gan-node-sample-main/index.js:59:26)
    at Object.<anonymous> (/Users/nak435/Downloads/gan-node-sample-main/index.js:74:1)
    at Module._compile (node:internal/modules/cjs/loader:1734:14)
    at Object..js (node:internal/modules/cjs/loader:1899:10)
    at Module.load (node:internal/modules/cjs/loader:1469:32)
    at Module._load (node:internal/modules/cjs/loader:1286:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:152:5)

Node.js v24.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions