Skip to content

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

Open
@xuhj

Description

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…

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions