Question Details

No question body available.

Tags

linux electron vite electron-forge better-sqlite3

Answers (2)

Accepted Answer Available
Accepted Answer
April 3, 2025 Score: 1 Rep: 33 Quality: Medium Completeness: 70%

The only solution that worked for me is this comment on GitHub under the issue titled as "Forge make combined with vite is creating an incomplete asar".

I modified my forge.config.js as recommended. I already had plugin-auto-unpack-natives entry in plugins, so I only had to add this ignore to packagerConfig

ignore:[ /node_modules\/(?!(better-sqlite3|bindings|file-uri-to-path)\/)/, ],
November 6, 2025 Score: 2 Rep: 11 Quality: Low Completeness: 40%

Adding this line actually worked

config :

asar: { unpack: "*.{node,dll}", }, ignore: [/node_modules\/(?!(better-sqlite3|bindings|file-uri-to-path)\/)/], },