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.

Asar: false, causing exception on app startup with v16.4.0

See original GitHub issue
  • Version: 16.4.0
  • Target: Win64 NSIS

Just updated from 15.4.3 to 16.4.0

Received the following exception on App startup (install OK):

A JavaScript error occurred in the main process Uncaught Exception: Error: Unable to find a valid app at Object.<anonymous> …\resources\electron.asar\browser\init…:9

If I set asar: true, all is good.

I use asar: false during development.

Build Config:

"build": {
    "appId": "com.myapp.myapp",
    "asar": false,
    "productName": "My App",
    "compression": "store",
    "npmRebuild": false,
    "win": {
      "target": [
        "nsis"
      ],
      "certificateSubjectName": "My Cert",
      "legalTrademarks": "My Trademark™"
    },    
    "nsis": {
      "perMachine": false,
      "allowElevation": true,
      "oneClick": true,
      "language": "3081"
    },
    "directories": {
      "buildResources": "resources",
      "output": "package_desktop",
      "app": "dist"
    }
  }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Mar 29, 2017

Thanks, fix will be in the next release.

0reactions
dharderscommented, Apr 2, 2017

Thanks @develar ! I can confirm this is now working. You’re a champion!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source - GitHub
... Fixes * Asar: false, causing exception on app startup with v16.4.0 ([7c6b4ab](https://github.com/electron-userland/electron-builder/commit/7c6b4ab)), ...
Read more >
Recently Active 'electron-forge' Questions - Page 2 - Stack Overflow
I have an Electron application where I am trying to use asar to package the node_modules and sources directories excluding the other directories....
Read more >
Release News - Contrast Documentation
Parent applications now show which vulnerabilities and routes are associated with which child application with a filter in the respective grid. This will...
Read more >
Untitled
Zielsetzung der arbeit diplomarbeit, Fattenbergstraat neerbeek, Apps 337 one piece, ... Cisco telnet read only access, Ostseehaus rosenweg 16 boltenhagen!
Read more >
MetaDefender Core v4.19.0 - OPSWAT Knowledge Center
v4.19.0. 16. 1. 2. 1. Quick Start with MetaDefender Core. This guide describes the basic steps for installing and scanning files with ...
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