Skip to content

Background.js not being compiled to app.asar #2003

@IH-Priyam

Description

@IH-Priyam

I have an application that runs well on "serve', but on building the application, I was getting Error: Application entry file "background.js" in the "....../app.asar" does not exist. Seems like a wrong configuration. Which is similar to issue #1637. But when i followed the thread and removed main: "background.js" from package.json, i get this similar errror now:
Error: Application entry file "index.js" in the "/application-improvment-UserMode/dist_electron/linux-unpacked/resources/app.asar" does not exist. Seems like a wrong configuration.
Also I am using "vue-cli-plugin-electron-builder": "~2.1.1", but the issue only offers solutions for version 3 Alpha.
Why are the files not being properly compiled to app.asar? How do I debug this issue?
Attached are the package.json and vue.config files
package.json

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions