Skip to content

Build app does not load properly npm run build #29

@CarlosOnline

Description

@CarlosOnline

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions