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.

HMR not Working when using Copy Plugin

See original GitHub issue

npm run hmr

mix.js('resources/assets/js/app.js', 'public/js')
mix.copy('node_modules/bootstrap/fonts', 'public/fonts')

This error preventing hot reload from working:

ERROR in [copy-webpack-plugin] Using older versions of webpack-dev-server, devServer.outputPath must be defined to write to absolute paths

npm run hmr

mix.js('resources/assets/js/app.js', 'public/js')
//mix.copy('node_modules/bootstrap/fonts', 'public/fonts')

Works.

I tried to use the output path as an absolute path but it can’t find any js file.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
JeffreyWaycommented, Apr 20, 2017

This is fixed in the next tagged release.

1reaction
SeoFoodcommented, Jan 14, 2017

Yes didn’t find a fix for that yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HMR not Working when using Copy Plugin · Issue #63 - GitHub
The copy plugin doesn't seem to be really stable. Dunno if there are better webpack copy plugins who support the webpack dev server....
Read more >
Webpack 4 HMR not fully working, can't figure out why
I'm trying to set up a frontend build pipeline with Webpack + Typescript, running into an issue with HMR, it's almost there.
Read more >
MiniCssExtractPlugin - webpack
This plugin should not be used with style-loader in the loaders chain. Here is an example to have both HMR in development and...
Read more >
Features | Vite
Vite provides first-party HMR integrations for Vue Single File Components and ... Use the Type-Only Imports and Export syntax to avoid potential problems...
Read more >
vite-plugin-hmr-public-copy - NPM Package Overview - Socket
Start using Socket to analyze vite-plugin-hmr-public-copy and its 4 ... Warning Please do not raise issues as those will most likely be ...
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