-
Notifications
You must be signed in to change notification settings - Fork 7
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
drizzle:generate fails to run #13
Comments
i do not think this is a bug... i mean you are using an electron package inside of a node script that is called outside of electron. just use your process.env.VITE_DATABASE_NAME || defaultDatabaseName in that file and when you init the db in your electron context override the name if not dev. |
It is an issue because the Also, I can't define the VITE_DATABASE_NAME on a customer computer. The db file needs to be created by the app, on launch, in the In this specific case, failing to check if |
I encountered a similar issue, although I wasn't using Drizzle in my application. In my case, the error was caused by the |
@SaidbekAbdiganiev Thanks for your feedback. It has no effect since this happens when running drizzle, not when running the electron app. That's when the check fails, the electron app does not exist. And that's why the |
Describe the bug
Hi!
I have an electron/drizzle app with the following config:
drizzle.config.ts
config.ts
When I run
drizzle:generate
I get the following error:I created PR #12 as a possible solution.
Any thoughts?
Electron-Toolkit Version
3.0.0
Electron Version
28.2.0
Validations
The text was updated successfully, but these errors were encountered: