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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay