question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Application entry file "index.js" in the resources/app.asar does not exist. Seems like a wrong configuration.

See original GitHub issue

My electron version is 19.53.7 and I am building for linux(x64) The error I get is Error: Application entry file “index.js” in the “/home/nikolas/Documents/ora-app/dist/linux-unpacked/resources/app.asar” does not exist. Seems like a wrong configuration. at error (/home/nikolas/Documents/ora-app/node_modules/electron-builder-lib/src/asar/asarFileChecker.ts:7:12)

The output of this command asar.js list app.asar is: /LICENSE.md /README.md /index.html /main.js My main package.json:

{
  "name": "Ora",
  "productName": "Ora",
  "version": "1.0.2",
  "description": "Task management and team collaboration",
  "main": "./index.js",
  "scripts": {
    "watch": "webpack --watch",
    "dist" : "build"
  },
  "build": {
    "appId": "com.ora.ora",
    "linux": {
      "target": [
        "snap"
      ]
    }
  },  

  "devDependencies": {
    "autoprefixer": "7.1.6",
    "babel-core": "6.26.0",
    "babel-loader": "7.1.2",
    "clean-webpack-plugin": "0.1.17",
    "copy-webpack-plugin": "4.2.1",
    "css-loader": "0.28.7",
    "electron": "^1.7.9",
    "electron-installer-snap": "^1.0.1",
    "electron-packager": "9.1.0",
    "eslint": "4.11.0",
    "eslint-config-dimitarnestorov": "1.1.1",
    "eslint-loader": "1.9.0",
    "extract-loader": "1.0.1",
    "file-loader": "1.1.5",
    "html-loader": "0.5.1",
    "less": "2.7.3",
    "less-loader": "4.0.5",
    "postcss-loader": "2.0.8",
    "raw-loader": "0.5.1",
    "style-loader": "0.19.0",
    "svgo": "1.0.3",
    "svgo-loader": "2.0.0",
    "webpack": "3.8.1"
  }
}

and the once in my app:

{
  "name": "ora",
  "version": "0.8.0-14",
  "description": "Task management done right! With kanban, time tracking, reports and team chat - Ora is your team's command center!",
  "main": "./index.js",
  "scripts": {
    "build": "webpack",
    "build:prod": "yarn; webpack -p --env production",
    "build:prod:sentry": "yarn; webpack -p --env production-sentry",
    "build:prod:this": "webpack -p --env production",
    "watch": "webpack --watch",
    "start": "webpack --watch",
    "watch:prod": "webpack -p --watch --env production",
    "watch:noeslint": "webpack --watch --env no-eslint",
    "watch:oradev": "webpack --watch --env oradev",
    "watch:noreload": "webpack --watch --env no-browsersync"
  },
  "browserslist": [
    "> 0.4%"
  ],
  "devDependencies": {
    "@codemotion/angular-disqus": "1.0.0",
    "@codemotion/angular-emoji-picker": "0.0.6",
    "@codemotion/angular-image-cropper": "1.0.0",
    "@codemotion/angular-mention": "0.9.24",
    "@codemotion/angular-photoswipe": "0.0.1",
    "@codemotion/angular-toast": "2.0.0",
    "@codemotion/angular-ui-bootstrap": "2.5.0",
    "@codemotion/canvas-to-blob": "1.0.0",
    "@codemotion/chunk-manifest-webpack-plugin": "1.1.2",
    "@codemotion/j-i-c": "2.0.2",
    "@uirouter/angularjs": "1.0.6",
    "ajv": "5.2.2",
    "angular": "1.6.6",
    "angular-animate": "1.6.6",
    "angular-country-picker": "2.0.1",
    "angular-drag-scroll": "git://github.com/codemotionapps/angular-drag-scroll.git#b21feb2e61fad8113456074837ccb9a26e06c5d8",
    "angular-elastic": "2.5.1",
    "angular-filter": "0.5.17",
    "angular-google-picker": "git://github.com/codemotionapps/angular-google-picker.git#3b11f415e412edfab03460eb19c364cb3cf53060",
    "angular-hotkeys": "1.7.0",
    "angular-image-dimensions": "1.1.0",
    "angular-joyride": "1.0.10",
    "angular-loading-bar": "0.9.0",
    "angular-notification-center": "git://github.com/codemotionapps/angular-notification-center.git#2c07ccf4f97812ebe41672f1c69d490f68f0a025",
    "angular-nvd3": "git://github.com/codemotionapps/angular-nvd3.git#0ee281d2167cae300501d6d2055812c341554ad5",
    "angular-recaptcha": "4.1.0",
    "angular-sanitize": "1.6.6",
    "angular-simple-number-mask": "git://github.com/codemotionapps/angular-simple-number-mask.git#3fa8a86a242ce015fde3301b560a9b37d1220d8a",
    "angular-svg-round-progressbar": "<1",
    "angular-trello-api-client": "1.0.0",
    "angular-xeditable": "0.8.0",
    "autoprefixer": "7.1.4",
    "babel-core": "6.26.0",
    "babel-loader": "7.1.2",
    "babel-plugin-transform-runtime": "6.23.0",
    "babel-polyfill": "6.26.0",
    "babel-preset-env": "1.6.0",
    "babel-preset-es2017": "6.24.1",
    "bootstrap": "git://github.com/codemotionapps/bootstrap.git#fe3f7bef2a880eb5c8207207d6947bd10ec2296e",
    "braintree-web": "^3.22.2",
    "browser-sync": "2.18.13",
    "browser-sync-webpack-plugin": "1.2.0",
    "chrono-node": "1.3.5",
    "clean-webpack-plugin": "0.1.16",
    "color": "2.0.0",
    "copy-webpack-plugin": "4.0.1",
    "css-loader": "0.28.7",
    "d3": "git://github.com/codemotionapps/d3.git#a0bf9ed03f7056a4b9e34c383fedddb91c9b58c4",
    "eslint": "4.7.2",
    "eslint-loader": "1.9.0",
    "extract-loader": "1.0.1",
    "file-loader": "0.11.2",
    "file-saver": "1.3.3",
    "gsap": "1.20.2",
    "html-loader": "0.5.1",
    "html-webpack-plugin": "2.30.1",
    "htmllint-loader": "1.3.8",
    "imports-loader": "0.7.1",
    "jsTag": "git://github.com/codemotionapps/jsTag.git#54cfa8fd19ee30ffe3d8a31af199ad709bf7fca5",
    "less": "2.7.2",
    "less-loader": "4.0.5",
    "moment": "2.18.1",
    "ng-csv": "0.3.6",
    "ng-dialog": "1.4.0",
    "ng-file-upload": "12.2.13",
    "ngclipboard": "1.1.1",
    "ngstorage": "0.3.11",
    "nvd3": "git://github.com/codemotionapps/nvd3.git#a42ff9705dcda2b12e9700eae16070c3bb602aac",
    "oclazyload": "1.1.0",
    "parse-diff": "0.4.0",
    "perfect-scrollbar": "0.8.1",
    "postcss-loader": "2.0.6",
    "prismjs": "1.8.1",
    "raven-js": "3.17.0",
    "raw-loader": "0.5.1",
    "request": "2.82.0",
    "satellizer": "0.15.5",
    "showdown": "1.7.4",
    "snapsvg": "0.5.1",
    "snapsvg-animator": "0.0.3",
    "style-loader": "0.18.2",
    "sugarss": "1.0.0",
    "svgo": "0.7.2",
    "svgo-loader": "1.2.1",
    "webpack": "3.6.0",
    "webpack-sentry-plugin": "1.14.0"
  },
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

16reactions
qiufeihong2018commented, Feb 23, 2021

app.asar必须要有main入口,其实将app.asar解压就会发现其中有background.js,那么我们的package.json中的要设置入口 "main": "background.js",'

2reactions
slimane-debcommented, Feb 6, 2020

I was using “files” to “build” entry, forgetting to specify electron-main.js leaded me to this error.

"files": [
      "dist/**/*",
      "package.json",
      "electron-main.js"
    ]
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 >
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 >
Common Configuration - electron-builder
in the package.json file of your project using the build key on the top level: "build": { "appId": "com.example.app" } · or through...
Read more >
Error: Application entry file "index.js" in the "/data/projects ...
js" in the "/data/projects/iermu_pc_app/dist/win-unpacked/resources/app.asar" does not exist. Seems like a wrong configuration. loopline-systems.
Read more >
ElectronNET/community - Gitter
Error : Application entry file "main.js" in the "\bin\Desktop\win-unpacked\resources\app.asar" does not exist. Seems like a wrong configuration. at ...
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