-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build app does not load properly npm run build #29
Comments
Have many people encountered this problem? |
Did you try to build first? |
I stopped using this version. I found another template that worked.
…On Tue, Apr 2, 2024, 11:49 AM Suraj Selladurai ***@***.***> wrote:
Did you try to build first?
—
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4FK56NAORRCAIKHPOKKXDY3L4VPAVCNFSM6AAAAABAFORCMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSHAYTCOJVGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
what template did you use? |
XunJiJiang
added a commit
to XunJiJiang/create-electron-vite
that referenced
this issue
Jun 26, 2024
…vite#29 The reason why the initial application cannot be built now may be as follows: (1)remove [workspace-path]\dist-app\win-unpacked\d3dcompiler_47.dll: Access is denied. This is because the file is occupied by [workspace-path]\dist-app\win-unpacked\[app].exe. Just restart the computer or use other methods to unblock it. (2)C:\Users\[user name]\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE Exit code: 1 When this error occurs, the application has completed packaging, but the installation package failed to be packaged. This problem occurs when using pnpm, but there is no problem using npm. After installing Electron-build globally, enter the dist folder and run Electron-build to solve the problem. (3)Application entry file "main.js" in the "[workspace-path]\dist-app\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration. This is because the copy plug-in does not correctly put main.js and preload.mjs into the dist folder. Run npm run build again to solve the problem
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The built app using
npm run build
does 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.
The text was updated successfully, but these errors were encountered: