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.

Random crash when hot reloading

See original GitHub issue

I tried multiple times to change files and see the results with hot reloading, but it randomly crashes after a few changes, or sometimes even at the first change.

I get the following errors in cmd:

npm ERR! Windows_NT 10.0.15063 npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “electron:serve” npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! angular-electron@1.3.5 electron:serve: electron . --serve npm ERR! Exit status 3221225477 npm ERR! npm ERR! Failed at the angular-electron@1.3.5 electron:serve script ‘electron . --serve’. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the angular-electron package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! electron . --serve npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs angular-electron npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls angular-electron npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Coddo\Desktop\Angular4Tutorial\angular-electron\npm-debug.log

The npm-debug.log file contains the following: https://pastebin.com/z7RLt6tw

And I’m not sure if this helps or what actually it is implying, but I get Electron could not be found. No hard resets for you! each time I run npm run electron:serve.

I have 2 consoles and I’ve run the app as described in the readme file:

  • cmd1: npm start
  • cmd2: npm run electron:serve

The crash occurs in cmd2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Gulivertxcommented, Jul 14, 2017

I had the same, I updated electron to the last and problem solve, in the same time I also updated Angular to last version 4.2.6 Here is my modified package.json

"dependencies": {
    "@angular/animations": "4.2.6", <-- NEW
    "@angular/common": "^4.2.6", <-- NEW
    "@angular/compiler": "^4.2.6", <-- NEW
    "@angular/core": "^4.2.6", <-- NEW
    "@angular/forms": "^4.2.6", <-- NEW
    "@angular/http": "^4.2.6", <-- NEW
    "@angular/platform-browser": "^4.2.6", <-- NEW
    "@angular/platform-browser-dynamic": "^4.2.6", <-- NEW
    "@angular/router": "^4.2.6", <-- NEW

"devDependencies": {
    "@angular/cli": "^1.2.0", <-- NEW
    "@angular/compiler-cli": "^4.2.6", <-- NEW
    "@ngtools/webpack": "^1.5.0", <-- NEW
    "@types/jasmine": "2.5.41",
    "@types/node": "7.0.18",
    "autoprefixer": "6.7.7",
    "codelyzer": "3.0.1",
    "copyfiles": "1.2.0",
    "cross-env": "4.0.0",
    "css-loader": "0.26.1",
    "cssnano": "3.10.0",
    "electron": "^1.7.4", <-- NEW
    "electron-packager": "8.6.0",
    "electron-reload": "1.2.0",
2reactions
katherdxcommented, Jul 11, 2017

@coddo did you found any solution? me too getting same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Games crash sometimes, apps reload randomly : r/buildapc
Hi, I just built my first computer and I've had some problems with it. Sometimes games will crash (Valorant, League, Apex) randomly, ...
Read more >
Flutter crashing, even on completely fresh build - Google Groups
Flutter started crashing seemingly randomly, most of the times after a hot reload. It wasn't my app that was crashing, it was the...
Read more >
Every time I edit SCSS, Parcel crashes the hot reloading with ...
Every time I make changes in my editor to an SCSS file, while I have a dev server running, the server crashes with...
Read more >
UE4 crashes every time I hot reload - Unreal Engine Forums
UE4 crashes every time I hot reload. When I build without the editing running, everything is fine. How can I fix this or...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
I am a developer of iPhone/Android and my app keeps crashing on users phones… click here. ... and reload it – this time...
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