You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an electron app using better-sqlite3.
Because better-sqlite is a native module (using c code) , I have to run electron-rebuild after npm install.
It works fine in "quasar dev -m electron".
After I build app there is an error "better-sqlite3 was compiled with different node version".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have an electron app using better-sqlite3.
Because better-sqlite is a native module (using c code) , I have to run electron-rebuild after npm install.
It works fine in "quasar dev -m electron".
After I build app there is an error "better-sqlite3 was compiled with different node version".
I found a solution:
2 after build, goto dist\electron\Packaged{$productName}\resources\app.asar.unpacked\node_modules\better-sqlite3
and run electron-rebuild.
After this step also compiled app works.
I assume that the same problem is with some other native modules.
Ok I can make an script to do it after build.
Is there some way to solve this problem in build tools.
Beta Was this translation helpful? Give feedback.
All reactions