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.

Lost hot reloading?

See original GitHub issue

Describe the bug When launching the app in dev mode (npm start electron:serve) I get this warning:

WARNING  Compiled with 1 warnings                                                                                                                                                                5:39:30 PM

 warning  in ./node_modules/write-file-atomic/index.js

Module not found: Error: Can't resolve 'worker_threads' in '/home/paul/factom/fat-wallet/node_modules/write-file-atomic'

As a consequence it seems that the hot reloading is not working.

To Reproduce I have version 1.01. of vue-cli-plugin-electron-builder, version 4.0.5 of Electron. I just run npm start electron:serve. Repo is here: https://github.com/Factom-Asset-Tokens/wallet/tree/development

Expected behavior Hot reloading working (modifying a .vue file should reload the app content)

Screenshots N/A

Environment (please complete the following information):

  • OS and version: Ubuntu 18.04.2 LTS
  • node version: 10.15.1 (LTS)
  • npm version: 6.4.1
  • yarn version (if used): N/A
  • vue-cli-plugin-electron-builder version : 1.0.1
  • electron version: 4.0.5
  • other vue plugins used: vuex, vuetify
  • custom config for vcp-electron-builder:
  • (if possible) link to your repo: https://github.com/Factom-Asset-Tokens/wallet/tree/development

Additional context It used to work… I cannot pinpoint at which point it broke though…

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
nklaymancommented, Feb 18, 2019

@PaulBernier When I try and install deps on your repo, it goes in an infinite loop of cd fat-js && npm install. let me know when you fix this so I can debug the issue. @beatgates The only change from 1.0.0 -> 1.0.1 is a fix with VUE_APP env vars not being available in builds. Chances are it was another dep updating.

0reactions
nklaymancommented, Feb 20, 2019

No idea. Localhost should be used. The plugin uses whatever vue cli gives it, which is usually localhost:8080.

Read more comments on GitHub >

github_iconTop Results From Across the Web

State lost on Hot Reloading with Create-React-App #1940
Hello,. I have detected a problem. The state is lost on Hot Reloading with Create-React-App. For instance: Step 1: Download and execute the...
Read more >
What is the difference between Hot Reloading and Live ...
Hot reloading only refreshes the files that were changed without losing the state of the app. For example, if you were four links...
Read more >
.NET Hot Reload support for ASP.NET Core | Microsoft Learn
Use .NET Hot Reload to apply code changes to a running app without restarting the app and without losing app state.
Read more >
Hot reload - Flutter documentation
Speed up development using Flutter's hot reload feature. ... Hot restart loads code changes into the VM, and restarts the Flutter app, losing...
Read more >
Hot Reload | Vue Loader
With hot reload enabled, when you edit a *.vue file, all instances of that component will be swapped in without reloading the page....
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