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

Help using rebuild to package node-sqlite3 to use with Electron #1094

Open
nikitavoloboev opened this issue Jul 30, 2023 · 2 comments
Open

Comments

@nikitavoloboev
Copy link

nikitavoloboev commented Jul 30, 2023

I opened an issue here first: electron-userland/electron-builder#7702

But realised this issue potentially needs rebuild.

In short I have the app I want to build with code here:

https://github.com/learn-anything/electron-version

cd app && pnpm run compile

will do a compile of the app

image

It completes without errors.

However if you open the resulting app, you get this error:

image

After googling the error I found this thread: TryGhost/node-sqlite3#1029 (comment)

And someone mentioning Rebuild to help solve this

image

But I don't get how to integrate it to actually solve it even after reading readme.

If you can help, I would really appreciate it ♥️

Thank you

@nikitavoloboev
Copy link
Author

I tried instructions from readme and get this

image

My code uses pnpm instead of npm if it matters and it has monorepo setup.

I am not sure how that would change things for the $(npm bin)/electron-rebuild command

@rosendolu
Copy link

Encountered the same problem。when pack ,native module rebuild failed ;Instead i use level ,Raised an issue at https://github.com/Level/classic-level/issues/84. As noted no need to rebuild .So how can i skip the rebuild

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

2 participants