electron / electron/forge

Does not work make Electron Forge with native modules of serialport v10 and usb v2.9.0

Open
#3,282 3 comments 0 reactions 0 assignees View on GitHub
bug native-modules
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Pre-flight checklist

- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

### Electron Forge version

6.2.1

### Electron version

v25.3.1

### Operating system

Ubuntu 22.04

### Last known working Electron Forge version

_No response_

### Expected behavior

Correctly relocate native modules with [webpack-asset-relocator-loader](https://github.com/vercel/webpack-asset-relocator-loader)

* serialport: node_modules/@serialport/bindings-cpp/build/Release/bindings.node
* usb: node_modules/usb/build/Release/usb_bindings.node

### Actual behavior

please see this thread https://github.com/serialport/node-serialport/issues/2464

### Steps to reproduce

This is current solution https://github.com/Dygmalab/Bazecor/blob/development/forge.config.ts

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.