electron-userland / electron-webpack

Scripts and configurations to compile Electron applications using webpack
https://webpack.electron.build/
906 stars 171 forks source link

sqlite not being installed #378

Open eightfivelabs opened 4 years ago

eightfivelabs commented 4 years ago

Hi there, I am trying to use pack sqlite and use it in the renderer process, but get the following error in the browser.

DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install sqlite3 --save
    at new DriverPackageNotInstalledError (/home/stuart/dev/electron-svelte-typeorm-typescript/src/error/DriverPackageNotInstalledError.ts:8:9)
    at SqliteDriver.loadDependencies (/home/stuart/dev/electron-svelte-typeorm-typescript/src/driver/sqlite/SqliteDriver.ts:128:19)
    at new SqliteDriver (/home/stuart/dev/electron-svelte-typeorm-typescript/src/driver/sqlite/SqliteDriver.ts:46:14)
    at DriverFactory.create (/home/stuart/dev/electron-svelte-typeorm-typescript/src/driver/DriverFactory.ts:42:24)
    at new Connection (/home/stuart/dev/electron-svelte-typeorm-typescript/src/connection/Connection.ts:127:43)
    at ConnectionManager.create (/home/stuart/dev/electron-svelte-typeorm-typescript/src/connection/ConnectionManager.ts:64:28)
    at /home/stuart/dev/electron-svelte-typeorm-typescript/src/index.ts:232:35
    at step (/home/stuart/dev/electron-svelte-typeorm-typescript/node_modules/tslib/tslib.js:141:27)
    at Object.next (/home/stuart/dev/electron-svelte-typeorm-typescript/node_modules/tslib/tslib.js:122:57)
    at /home/stuart/dev/electron-svelte-typeorm-typescript/node_modules/tslib/tslib.js:115:75

An example of the repo can be found at https://github.com/eightfivelabs/electron-svelte-typeorm-typescript/tree/681e83d61acbab0a1959bc61830d24f7df1e8bca (at the specific commit linked).