including better-sqlite3 and typeorm as dependencies #18
Unanswered
mygithubid1
asked this question in
Q&A
Replies: 2 comments
-
Couldn't get Added the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @mygithubid1, I know it's late but sorry I've just seen your post here. Have you solved your issue? And are you using it in the main process or the renderer? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for the boilerplate..
I'm unable to run an electron app containing better-sqlite3 and typeorm as dependencies.
The postInstall command is there in the webpack config.
The following dependency versions are in use:
"typeorm": "^0.2.32", "better-sqlite3": "^7.1.4",
When running the app, the following error occurs:
(node:16520) UnhandledPromiseRejectionWarning: DriverPackageNotInstalledError: SQLite package has not been found installed. Try to install it: npm install better-sqlite3 --save at new DriverPackageNotInstalledError (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:104418:28) at BetterSqlite3Driver.loadDependencies (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:76054:19) at new BetterSqlite3Driver (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:75977:15) at DriverFactory.create (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:72381:24) at new Connection (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:69292:59) at ConnectionManager.create (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:69851:26) at Object.<anonymous> (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:106989:66) at step (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:121298:23) at Object.next (/home/myusername/dev/app/MyApp1/dist/main.bundle.js:121279:53) at /home/myusername/dev/app/MyApp1/dist/main.bundle.js:121272:71 (node:16520) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
Thoughts?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions