DEV Community

Dênis Mendes
Dênis Mendes

Posted on • Edited on

6

Fixing "Error - Application entry file `dist/src/main` ... does not exist" on Electron Builder.

I got this error when I was trying to build an electron app with electron-builder:

Application entry file "dist/src/main" in the "/Users/username/appname/appname/electron-app/build/mac/pos.app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.  
stackTrace=Error: Application entry file "dist/src/main" in the "/Users/username/appname/appname/electron-app/build/mac/pos.app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.                  
Enter fullscreen mode Exit fullscreen mode

So I did that for solving:

Into package.json my value to main was like that "main": "dist/src/main" then I changed to "main": "dist/src/main.js" and it was solved!

Top comments (1)

Collapse
 
rajasuman09 profile image
Raja Suman Chowdary

Thank you very much. That solved my problem.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more