The built app using npm run build does not run properly.
How do I properly package the electron app?
Repro
npm create electron-vite@latest electron-vite-project
cd electron-vite-project
npm install
npm run build
release\0.0.0\win-unpacked\YourAppName.exe
Results:
Empty electron window with no content.
Open Developer Tools to see the error.
From developer tools.
Failed to load resource: net::ERR_FILE_NOT_FOUND index-2fe1d414.js:1
Failed to load resource: net::ERR_FILE_NOT_FOUND index-ad2cb9f4.css:1
The built app using
npm run builddoes not run properly.How do I properly package the electron app?
Repro
Results:
Empty electron window with no content.
Open Developer Tools to see the error.
From developer tools.