electron / electron/forge

Webpack + Electron Forge + SQlite3 should work out of the box

Open
#1,482 11 comments 0 reactions 0 assignees View on GitHub
plugin/webpack
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Preflight Checklist

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

### Issue Details

* **Electron Forge Version:**
* 6.0.0-beta.49
* **Electron Version:**
* v7.1.7
* **Operating System:**
* Windows 10 x64

### Expected Behavior
Webpack should copy and use the Electron bindings from
```
node_modules\sqlite3\lib\binding\electron-v7.1-win32-x64\node_sqlite3.node
```

### Actual Behavior
Webpack instead copies the _original_ Node bindings and loads those, giving the usual `Error: The module was compiled against a different Node.js version`, with the following path:
```
node_modules\sqlite3\lib\binding\node-v79-win32-x64\node_sqlite3.node
```

### To Reproduce
Configure Forge with webpack (I also use TypeScript), install sqlite3, import it in a script, and run the start script.

### Additional Information
None

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.