[Vuejs]-Vue.js net::ERR_INCOMPLETE_CHUNKED_ENCODING Webpack error

0👍

There’s a pull request to fix this in the webpack template repo, but it hasn’t been merged as of this writing.

I’ve implemented the fix from the PR in several projects and it seems to work fine.

In build/dev-server.js, add heartbeat: 2000 to the options object passed to require('webpack-dev-middleware') so it ends up looking like:

var hotMiddleware = require('webpack-hot-middleware')(compiler, {
  log: () => {},
  heartbeat: 2000
})

Edit: it seems as though a newer identical PR was just accepted/merged.

👤Chris

0👍

var hotMiddleware = require('webpack-hot-middleware')(compiler, {
  log: () => {},
  heartbeat: 2000
})

Worked for me, and also this:

var hotMiddleware = require('webpack-hot-middleware')(compiler, {
  log: false,
  heartbeat: 2000
})

and you must run again npm run dev command.

Thanks to #Jack Barham

Note: im using the PWA Template.

👤Nadhir

Leave a comment