Electron + Webpack + React: SQLite package has not been found installed

See original GitHub issue

Issue 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 

image

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.

image

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:closed
  • Created 5 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
rohmanhmcommented, Jul 4, 2018

I finally fixed my issue by installing this package https://github.com/electron/electron-rebuild, and run

electron-rebuild -f -w sqlite3

Thanks, everyone 🙂

2reactions
pleerockcommented, Jul 6, 2018

there is actually a post-install script in package.json that runs electron-rebuild for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron application SQLITE package has not been found ...
The following are steps you need to follow. First, we need to add a postinstall step in your package.json: "scripts": { "postinstall": "install- ......
Read more >
better-sqlite3 - npm
The fastest and simplest library for SQLite3 in Node.js.. Latest version: 8.0.1, last published: 22 days ago. Start using better-sqlite3 in ...
Read more >
missing driver error typeorm - You.com | The search engine you ...
I keep getting the console error: Mysql package has not been found installed. Try to install it: npm install mysql --save. The package...
Read more >
Integrating Sqlite3 in electron project built with Electron-forge
Here is my app's tech stack: Electron. React. Electron-forge. Webpack ... I saw that better-sqlite3 have updated their package and is no more...
Read more >
SQLite package not found in Electron/TypeORM : r/webdev
Error: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save. Of course it's installed and its binding ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found