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:
Am I missing some step?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.