Closed kevinmamaqi closed 6 years ago
Are you trying to run this in a non-Electron, non-NW.js browser?
I think so, I was using chrome. Not aware of what non-NW.js browsers are.
@kevinmamaqi Chrome doesn't have access to the filesystem, device descriptor or USB port you're trying to use. Browserify cannot help you with this as it's a browser security limitation causing this problem.
On my mac I connect arduino and run: ls /dev/tty.* // Find Serial Port number and name. /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbmodem1421
Then on my main.js (before bundling with browserify) I have the following:
Get the following message: Uncaught Error: No access to serial ports. Try loading as a Chrome Application.