marcopiraccini / marcopiraccini/electron-usb

electron-usb gives 'Module version mismatch' error with electron Ver 1.1.0

Open
#3 1 comment 4 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

Since upgrading to 'electron-prebuilt@1.1.0' that comes bundled with 'nodeJs@6.1.0' the module require('electron-usb') gives an error on start
Error: Module version mismatch. Expected 48, got 47

Workaround until electron-usb gets updated
removing electron-prebuilt@1.1.0 and installing electron-prebuilt@1.0.2 solves the problem
apparently the version of nodeJs in electron-prebuilt has to match the version in 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

Start by reproducing require('electron-usb') with electron-prebuilt@1.1.0 and nodeJs@6.1.0, then compare it with the working electron-prebuilt@1.0.2 setup. Trace the native module version reported by Electron and electron-usb; done means the module loads without the “Expected 48, got 47” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, electron, node.js
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.