error throw로 npx run dev로 작동이 안될 때 -stackoverflow

김명성·2022년 1월 29일
0

ERROR

목록 보기
6/8
post-custom-banner
I ran into a similar problem. After 2 days of research and trying different things,I found out the simplest cause to my problem ever: in webpack.config.js,I had a HRM dev server enabled.
And I also had a HMR server run from command line.

just by removing --hot from command line, it works OK now.

current webpack.config.js

devtool: "inline-source-map",
devServer: {
    publicPath: '/dist/',
    contentBase: path.join(__dirname, 'public'),
    port: 9000,
    hot: true
},

With this configuration, don't do this:

npx webpack-dev-server --hot --inline

해결방안

Do this: npx webpack-dev-server

post-custom-banner

0개의 댓글