Open ghost opened 5 years ago
I would like to use this in my Angular 6 service provider, but not sure how. I tried to include it in several ways but none of them seem to be working.
I tried:
this.usb = this.electronService.remote.require('electron-usb');
* as usb from 'electron-usb';
this.usb = require('electron-usb')
Ofcourse I have installed the npm electron usb package by
nmp install usb
but I still get the error:Error: Cannot find module 'electron-usb'
Have you got any progress from then on ? I met a similar problem where I installed node-usb on electron-v6.0.0. But failed to require the package instantly. And the problem leads me to here...
I would like to use this in my Angular 6 service provider, but not sure how. I tried to include it in several ways but none of them seem to be working.
I tried:
this.usb = this.electronService.remote.require('electron-usb');
* as usb from 'electron-usb';
this.usb = require('electron-usb')
Ofcourse I have installed the npm electron usb package by
nmp install usb
but I still get the error:Error: Cannot find module 'electron-usb'