DEV Community

Dênis Mendes
Dênis Mendes

Posted on • Edited on

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 (0)