loading...

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

dnsmnds profile image Dênis Mendes ・1 min read

I got this error when am 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!

Discussion

pic
Editor guide