Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMR is not working on basic setup #238

Open
shellparse opened this issue Feb 4, 2022 · 0 comments
Open

HMR is not working on basic setup #238

shellparse opened this issue Feb 4, 2022 · 0 comments

Comments

@shellparse
Copy link

i am setting up a dev server using webpack-plugin-serve
something really basic
this is the structure of the project
favicon-32x32
my config file

const path = require('path');
const { WebpackPluginServe: Serve } = require('webpack-plugin-serve');
module.exports = {
  watch:true,
  mode:"development",
  entry: ['webpack-plugin-serve/client','./src/index.js'],
  output: {
    filename: 'main.js',
    path: path.resolve(__dirname, 'dist'),
  },
  plugins:[
    new Serve({
        static:"./dist",
        client:{address:"localhost:55555"}
    })
  ]
};

everything works as intended the browser opens and displays the div
the problem is with HMR
as soon as i edit my index.js and save i get this error in the console :
icons8-timer-64

i looked everywhere on the internet for something similar but couldn't find any help been with this problem for 2 days now trying
with more than 10 empty projects and different possible causes but no luck that's why I'm writing here

maybe I'm missing something
thank you for anyhelp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant