Error: Application entry file "build/electron.js" in the "<path>/dist/mac/<app-name>/Contents/Resources/app.asar" does not exist.

See original GitHub issue
  • Version: 19.49.0

  • Target: mac

I’m using create-react-app and also followed below blog post. https://medium.com/@kitze/️-from-react-to-an-electron-app-ready-for-production-a0468ecb1da3

Error: Application entry file "build/electron.js" in the "/Users/jarvis/Dev/sandbox/elec-app/dist/mac/elec-app.app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
    at error (/Users/jarvis/Dev/sandbox/elec-app/node_modules/electron-builder-lib/src/asar/asarFileChecker.ts:7:12)
    at /Users/jarvis/Dev/sandbox/elec-app/node_modules/electron-builder-lib/src/asar/asarFileChecker.ts:33:11
    at next (native)
    at /Users/jarvis/Dev/sandbox/elec-app/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:123:15)
:

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:32
  • Comments:37 (3 by maintainers)

github_iconTop GitHub Comments

80reactions
patarapolwcommented, Jan 15, 2019

Somehow, setting files work

"build": {
    "files": [
      "dist/**/*",
      "package.json"
    ],
}
33reactions
andymorriscommented, Jan 5, 2018

I was also getting this error (though I’m trying to build on Windows with 19.52.1) and just wanted to note that the workaround described in #2030 worked for me:

Workaround: please add “extends”: null to build.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Application entry file does not exist in Electron Builder
js" in the "[path-to-project]/dist/mac/myapp.app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
Read more >
Error: Application entry file "build/electron.js" in the "<path ...
Error : Application entry file "build/electron.js" in the "<path>/dist/mac/<app-name>/Contents/Resources/app.asar" does not exist.
Read more >
Fixing "Error - Application entry file `dist/src/main` ... does not ...
I got this error when I was trying to build an electron app with ... -app/build/mac/pos.app/Contents/Resources/app.asar" does not exist.
Read more >
My Electron App Size Is 530Mb . So, I Unzip The Asar File ...
Error : Application entry file "build/electron.js" in the "<path>/dist/mac/<app-name>/Contents/Resources/app.asar" does not exist. #2404. Closed. thinkholic.
Read more >
electron builder not allowed to load local resource - You.com
was that the app.asar file does not contain any file call index.html inside ... but unfortunately that error comes. i even tried build...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found