Lost hot reloading?
See original GitHub issueDescribe 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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top 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 >
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 Free
Top 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
@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 withVUE_APP
env vars not being available in builds. Chances are it was another dep updating.No idea. Localhost should be used. The plugin uses whatever vue cli gives it, which is usually localhost:8080.