You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/webusb/node_modules/webusb-serial/index.js:66
navigator.usb.requestDevice({filters: self.filters })
^
ReferenceError: navigator is not defined
at new WebUSBSerialPort (/webusb/node_modules/webusb-serial/index.js:66:5)
at Object.<anonymous> (/webusb/webusb-test.js:5:18)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Seems this library for Browser but when I use it as a browser code require is not defined. Seems example need to updated.
The text was updated successfully, but these errors were encountered:
When I try to run the example from Node it gives
Seems this library for Browser but when I use it as a browser code
require
is not defined. Seems example need to updated.The text was updated successfully, but these errors were encountered: