electron/rebuild

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

nikitavoloboev opened this issue · 2 comments

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

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

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