electron-userland / electron-userland/electron-webpack

sqlite3 problem

Open
#44 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

Hi,
im trying to run electron-webpack with sqlite3 and i noticed problem.
When im using yarn:
`yarn add sqlite3`
there is created compiled file inside directory:
`\node_modules\sqlite3\lib\binding\node-v48-win32-x64\node_sqlite3.node"`
nice, its compiled already, but application throws error:
`Uncaught Error: Cannot find module 'node_modules\sqlite3\lib\binding\electron-v1.7-win32-x64\node_sqlite3.node'`
electron-builder i think, created node-v48-win32-x64 instead of electron-v1.7 folder.
So to make it works, Im using npm:
`npm install sqlite3 --build-from-source --runtime=electron --target=1.7.8 --dist-url=https://atom.io/download/electron`
and its work now, folder `electron-v1.7-win32-x64` is created. But when i add another library with yarn, its deleted and there is new version under node-v48-win32-x64 - wrong.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.