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.

Using with electron-prebuilt-compile

See original GitHub issue
  • Version: 20.28.7
  • Target: Windows

Early this year I opened an issue regarding electron-prebuilt-compile (#2361) and, although the issue at that time was fixed, I’m still having some issues.

package.json:

{
  "name": "ipfs-desktop",
  "private": true,
  "version": "1.0.0",
  "productName": "IPFS Desktop",
  "description": "IPFS Native Application",
  "main": "src/index.js",
  "scripts": {
    "start": "electron .",
    "lint": "standard",
    "pack": "electron-builder --dir",
    "dist": "electron-builder"
  },
  // ...
  "build": {
    "appId": "io.ipfs.desktop",
    "mac": {
      "category": "public.app-category.utilities"
    }
  },
  "devDependencies": {
    "electron-builder": "^20.28.4",
    "electron-prebuilt-compile": "^3.0.0",
    "pre-commit": "^1.2.2",
    "standard": "^12.0.1"
  },
  "dependencies": {
    "fs-extra": "^7.0.0",
    "ipfs-css": "^0.10.0",
    "react": "^16.5.2",
    "react-dom": "^16.5.2",
    "tachyons": "^4.11.1"
  }
}

If I run npm run dist and then I try to execute the binary file, I get this:

image

Am I missing some step?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
simonpaicommented, Oct 25, 2018

AFAICS, the original poster got around by ditching electron-prebuilt-compile and setting up babel instead (with using babel-register in development and pointing to compiled js folder for production). I ran into the same issue and resolved by following what he did. Just sharing the information in case someone else needs it.

See his commit here.

0reactions
stale[bot]commented, Jul 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-prebuilt-compile - npm
Start using electron-prebuilt-compile in your project by running `npm i electron-prebuilt-compile`. There are 3 other projects in the npm ...
Read more >
electron-prebuilt-compile - GitHub
electron -prebuilt-compile is a drop-in replacement for electron-prebuilt that natively understands ES6 + React + LESS + some other languages, powered by  ......
Read more >
electron-prebuilt-compile - npm package - Snyk
electron -prebuilt-compile is a drop-in replacement for electron-prebuilt that natively understands ES6 + React + LESS + some other languages, powered by ...
Read more >
electron-prebuilt-compile | Yarn - Package Manager
electron -prebuilt-compile is a drop-in replacement for electron-prebuilt that natively understands ES6 + React + LESS + some other languages, ...
Read more >
How do I use electron-compile? - Stack Overflow
You should install Electron as a dev reference in package.json, yes: npm install --save-dev electron-prebuilt-compile.
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