marcopiraccini / marcopiraccini/electron-usb

How to integrate this with Angular 6?

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
37
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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:

1. ``` this.usb = this.electronService.remote.require('electron-usb'); ```
2. ``` * as usb from 'electron-usb'; ```
3. ``` 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'```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report identifies Angular 6, electronService.remote.require, and the electron-usb/usb package, but names no repository file or test. Start by reproducing the “Cannot find module” error and checking the package and import path used by the Angular service provider. Done means establishing and verifying a supported integration path.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, electron, node.js
Domain
desktop, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.