-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using local database after electron build #275
Comments
I don't see any error when I run it myself. Please send me a demo repo that has the error. |
Hello, @nklayman. Here's the repo: Here's some context. When I use |
Use this: const pathToDbFile = path.join(
// eslint-disable-next-line
isBuild ? __dirname : __static,
'../src/data.db',
); not sure why the path changed, but this works now. |
Thank you! This works, but I have another issue with sequelize and SQLite. I don't have a table named |
Oh, nevermind. Got it cleared up. Just had to declare the |
@j-nguyen Have you encountered this error?
|
|
Hey all. I'm currently using Electron 5.0.1, Vue 2.6, and The Electron Builder v1.3.1. I'm having trouble getting SQLite to work when I'm trying to build a MacOS or Windows app.
Here's what my
vue.config.js
looks like:and Here's how I connect via my db:
Any idea what's going on?
The text was updated successfully, but these errors were encountered: