master branchDEBUG_PROD=true yarn build && yarn startStep 1: 0.17.x is ok, merged 0.18.0
Step 2:
rm -rf node_modules &&
yarn cache clean &&
yarn &&
yarn electron-rebuild &&
yarn dev
Step 3:
expect app start.
windows 10
but nothing happend.
run 'yarn package' is ok.
位 yarn dev
`yarn run v1.19.1
$ cross-env START_HOT=1 node -r @babel/register ./internals/scripts/CheckPortInUse.js && cross-env START_HOT=1 yarn start-renderer-dev
$ cross-env NODE_ENV=development webpack-dev-server --config configs/webpack.config.renderer.dev.babel.js
Starting Main Process...
[email protected] start-main-dev D:\WorkSpace\HCCN_Projects\sapp-deployment-tools
cross-env HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.dev.js
libpng warning: iCCP: cHRM chunk does not match sRGB`
yarn 1.19.1
electron-builder version=22.1.0 os=10.0.18363
Be careful with this new version, there is a rollback with the two package.json structure.
If you have native libs that need to be recompiled you have to declare them in the app/package.json.
check this documentation : https://www.electron.build/tutorials/two-package-structure
But why can't start the app using only the template?
I have n鈥檛 changed anything, just do
rm -rf node_modules &&
yarn cache clean &&
yarn &&
yarn electron-rebuild &&
yarn dev
But after that, nothing happened and the app didn't open automatically.
I tested tag v0.17.1 and can open the app normally after the above steps
with 'v0.18.0' npm run 'start' is ok.
"start": "cross-env NODE_ENV=production electron ./app/main.prod.js",
but I need development env.
I can't reproduce this on windows latest master, fresh clone, cleared cache.
ok, please wait for me to try again.
聽
rm -rf node_modules &&
yarn cache clean &&
yarn &&
yarn electron-rebuild &&
yarn dev
nothing happened锛宎pp not open auto.
It's not working for me either. I also made sure to clear my electron cache in C:\Users\{user}\AppData\Roaming, cleared everything that was electron related (since i've previously had problems with it). Then i cloned, ran yarn and then yarn dev, nothing comes up.
yes, I also cleaned C: \ Users \ {user} \ AppData \ Roaming.
位 set UPGRADE_EXTENSIONS=1 && yarn run dev
yarn run v1.19.2
$ cross-env START_HOT=1 node -r @babel/register ./internals/scripts/CheckPortInUse.js && cross-env START_HOT=1 yarn start-renderer-dev
$ cross-env NODE_ENV=development webpack-dev-server --config configs/webpack.config.renderer.dev.babel.js
Starting Main Process...[email protected] start-main-dev D:\WorkSpace\HCCN_Projects\sapp-deployment-tools
cross-env START_HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.dev.jslibpng warning: iCCP: cHRM chunk does not match sRGB
No change, still can't open the window
have this problem too
I am having the same issues, I cleared my cache in roaming, cloned the repo into a new project, ran yarn dev and only a white screen will show. Yarn start is working however.
I don't even see the white form.
This issue has troubled my development.
Can you try building with DEBUG_PROD and see if there are any console errors in prod
I have the same issue. I init a new project by clone this repo and run yarn. When I use yarn dev, this is my error.

1. yarn 2. yarn build 3. yarn dev and everything will work
Just tried, it's not working :/
- yarn
- yarn build
- yarn dev
and everything will work
I was hopeful, but I don't even get an app window with a white app frame.

Same for me, it doesn't work. I'll try an older version
I am getting the same issue

I solved the issue by running the following command.
UPGRADE_EXTENSIONS=1 yarn run dev
Upgrade extensions is not working either. I'm not even getting a blank page, so that might be why the upgrade extensions is not working
My OS is Windows 10. I'm not even getting a blank page.
run 'set UPGRADE_EXTENSIONS=1 && yarn run dev', not working
Try #2341 possible solution. It's helped me work correctly.
Try #2341 possible solution. It's helped me work correctly.
This worked for me. Running yarn build like @AntonGarasko recommended helped, but live-reloading didn't work still and was fixed by #2341 for me.
Try #2341 possible solution. It's helped me work correctly.
Hmm, still can't even get the blank electron app, sounds like this could solve possible issues when the blank pages is appearing though
There was no problem at all in Ubuntu. but have this problem in Windows10.
I tried all of the answers above but it didn't work.
and this worked for me. (Windows 10)
// main.dev.js
// Remove the bottom two blocks
if (
process.env.NODE_ENV === 'development' ||
process.env.DEBUG_PROD === 'true'
) {
require('electron-debug')();
}
if (
process.env.NODE_ENV === 'development' ||
process.env.DEBUG_PROD === 'true'
) {
await installExtensions();
}
- yarn
- yarn build
- yarn dev
and everything will work
this worked for me. (Mac OS)
Same issue here on Windows 10 fresh clone, tried all the suggested solutions non of them working.
When I run _yarn dev_ the window doesn't even open.
Same issue occured in Windows 10, but not in Windows 7.
I'd tested single repo for them.
@comcaptain @Crazycheng
Probably i know why you got these errors in console.
In the .html file of your window, change these entries process.env.HOT onto process.env.START_HOT.
It works for me.
0.18.1 might resolve this issue. Please try running the latest master to test 0.18.1
0.frech code to v0.18.1
1.cleaned C: \ Users \ {user} \ AppData \ Roaming.
2.rm -rf node_modules && yarn cache clean && yarn && yarn electron-rebuild && yarn dev
show error:
Electron failed to install correctly, please delete node_modules/electron and try installing again
This is an issue on electron's side. This project does not handle electron installation.
I'm on Win10 I tried evertyhing above but nothing worked. The app is not starting with yarn dev and hangs on this command:
> cross-env START_HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.dev.js
Try turning off dark mode in Win10.
Try turning off dark mode in Win10.
Thanks... It work.. :)))
Try turning off dark mode in Win10.
Thanks a lot. IDK why doesn't work on dark mode...
Most helpful comment
Try turning off dark mode in Win10.
https://github.com/electron/electron/issues/19468