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
When trying to open the packaged app, electron will warn that the native module was compiled against different version using NODE_MODULE_VERSION 64 instead of the required 73.
However, if you run the following
npm un nan-hello-world && npm i nan-hello-world
npm start
# close the app then run
npm run package
The app will run fine because the npm start has already rebuilt the module. @marshallofsound/webpack-asset-relocator-loader is relocating the rebuilt version of the .node files.
To get around this issue with CI tools, I need to manually run
npx electron-rebuild
before running package/make so that the correct .node files are being packed.
The text was updated successfully, but these errors were encountered:
Please describe your issue:
The issue is that this loader @marshallofsound/webpack-asset-relocator-loader relocates .node files before they get rebuilt.
edit main.js by adding the following:
Run npm run package without npm start
When trying to open the packaged app, electron will warn that the native module was compiled against different version using NODE_MODULE_VERSION 64 instead of the required 73.
However, if you run the following
The app will run fine because the npm start has already rebuilt the module. @marshallofsound/webpack-asset-relocator-loader is relocating the rebuilt version of the .node files.
To get around this issue with CI tools, I need to manually run
before running package/make so that the correct .node files are being packed.
The text was updated successfully, but these errors were encountered: