Error: Application entry file "main.js" in the ".../Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
See original GitHub issue-
Version: “electron”: “^2.0.2”, “electron-builder”: “^20.15.1”, “electron-webpack”: “^2.1.2”
node v10.0.0 yarn 1.6.0 mac sierra 10.13.4
- Target: mac
I’m following this gist: https://gist.github.com/matthewjberger/6f42452cb1a2253667942d333ff53404
Everything is ok, development is ok, but on yarn dist
I get this error:
Error: Application entry file "main.js" in the ".../Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
I found somewhere a workaround as add "extends": null
in build
in package.json but I get a compiled file (.app) that open a white page.
If I start the electron app created that shows only a white page with the inspector opened I see app.js not found error
My package.json build right now is:
"build": {
"appId": "com.electron.electron-with-create-react-app",
"win": {
"icon": "https://cdn2.iconfinder.com/data/icons/designer-skills/128/react-256.png"
},
"directories": {
"buildResources": "public"
}
},
I’ve tried to copy my src/electron-starter.js
into main.js
(into main project directory) and in src/main.js
and into public/main.js
as a workaround but the error is still there.
Do you have any hint? Do I have to post something more about my actual project?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:7
Top GitHub Comments
Add “files” field to your package.json in my case “electron-starter.js” is electron entry file
How did you solve your issue?