Electron + Webpack + React: SQLite package has not been found installed
See original GitHub issueIssue type:
[x] question [ ] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql
/ mariadb
[ ] oracle
[ ] postgres
[x] sqlite
[ ] sqljs
[ ] react-native
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
I using this boilerplate to make my electron app. https://github.com/iRath96/electron-react-typescript-boilerplate
I follow the same instruction as https://github.com/typeorm/electron-typescript-example did, but when I run yarn dev
on my project it throws an error like below on console developer tools electron app.
Error: Error: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
at new DriverPackageNotInstalledError
I have removed and reinstall node_modules but it didn’t work.
I also double check if sqlite3
present on node_modules or not. But it’s available.
So I’ve made repository if you want to check it out, here is my repo https://github.com/rohmanhm/ts-electron-react-typeorm-sqlite
Any way to solve this issue? Any suggestion will be helpful.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (7 by maintainers)
I finally fixed my issue by installing this package https://github.com/electron/electron-rebuild, and run
Thanks, everyone 🙂
there is actually a post-install script in package.json that runs electron-rebuild for you