Closed alankrantas closed 2 years ago
[Describe the bug The createNodeUSBOptions() in JSOM Node.js requires a WebUSB constructor from the package usb ,
createNodeUSBOptions()
usb
https://microsoft.github.io/jacdac-docs/clients/javascript/jdom/
Additional context My fix:
First the user has to install usb
npm install --save usb
Then
import { createUSBBus, createNodeUSBOptions, ... } from "jacdac-ts" import { WebUSB } from "usb"; // fix const options = createNodeUSBOptions(WebUSB); // fix const bus = createUSBBus(options);
Thanks! Fix applied!
[Describe the bug The
createNodeUSBOptions()
in JSOM Node.js requires a WebUSB constructor from the packageusb
,https://microsoft.github.io/jacdac-docs/clients/javascript/jdom/
Additional context My fix:
First the user has to install
usb
Then