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.

Vue 3 hot reload fails using vue-loader 16.8.2

See original GitHub issue

Version

16.8.2

Reproduction link

vue hot reload bug repository

Steps to reproduce

  1. Clone linked repo
  2. CD into root
  3. npm install
  4. npm run dev
  5. Make a minor change in src/components/variants/Empty/index.vue or script.ts (delete and re-add a character)
  6. Save the file
  7. 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:open
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
abinadavecommented, Apr 29, 2022

Still no found solution for this.

1reaction
bgowerscommented, Dec 6, 2021

Also occurs on 16.8.3

Read more comments on GitHub >

github_iconTop 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 >

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