Vue 3 hot reload fails using vue-loader 16.8.2
See original GitHub issueVersion
16.8.2
Reproduction link
Steps to reproduce
- Clone linked repo
- CD into root
- npm install
- npm run dev
- Make a minor change in src/components/variants/Empty/index.vue or script.ts (delete and re-add a character)
- Save the file
- See hot reload fail
What is expected?
On save, hot reload the application successfully.
What is actually happening?
A webpack error:
<e> [webpack-dev-middleware] Error: The loaded module contains errors
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/dependencies/LoaderPlugin.js:108:11
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/Compilation.js:1854:5
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/util/AsyncQueue.js:352:5
<e> at Hook.eval [as callAsync] (eval at create (/Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
<e> at AsyncQueue._handleResult (/Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/util/AsyncQueue.js:322:21)
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/util/AsyncQueue.js:305:11
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/Compilation.js:1384:15
<e> at /Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/HookWebpackError.js:68:3
<e> at Hook.eval [as callAsync] (eval at create (/Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
<e> at Cache.store (/Users/benjamingowers/Dev/vue-hotreload-bug/node_modules/webpack/lib/Cache.js:107:20)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
vue-loader - npm
Start using vue-loader in your project by running `npm i vue-loader`. ... being hot-reloaded in isolation, causing the component to reload ...
Read more >Hot Reload
"Hot Reload" is not simply reloading the page when you edit a file. With hot reload enabled, when you edit a *.vue file,...
Read more >Hot reload does not work in Vue CLI | by KASATA
Simply put, Vue CLI's hot reload is a feature that automatically restarts the server and reflects changes in the browser when you enter...
Read more >vue hot reload not reload - webpack
My dev server was not working until I added the publicPath: dist/ in webpack.config.js, If you are facing the same problem like me, ......
Read more >vue-hot-reload-api
Hot reload API for Vue components. This is what vue-loader and vueify use under the hood. Usage. You will only be using this...
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
Still no found solution for this.
Also occurs on 16.8.3