Skip to content
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

electron-forge use sqlite3 has errors: Uncaught Exception: Error: Cannot find module 'sqlite3' #205

Open
xuhj opened this issue Nov 14, 2024 · 1 comment

Comments

@xuhj
Copy link

xuhj commented Nov 14, 2024

i follow create an Electron app with Vue and Electron Forge
it can be run successfuly for npm run start and npm run make
then I also do
yarn add sqlite3
and add "const sqlite3 = require('sqlite3').verbose();" in main.js
it can be run successfuly for npm run start

but npm run make it show "Uncaught Exception: Error: Cannot find module 'sqlite3'"
how to Resolve this issue?
I have try delete node_modules but useless
Uploading 11.jpg…

@xuhj
Copy link
Author

xuhj commented Nov 14, 2024

11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant