Closed FilipWozniak closed 2 years ago
@FilipWozniak
Please try to remove writeToDisk
and watchFiles
and see if it works.
Some config might vary in different Webpack related packages.
Thx.
@FilipWozniak
I just checked this issue on my local env.
Please upgrade to "webpack-dev-server": "^4.7.2"
And then use config below
devServer: {
host: "0.0.0.0",
port: 9091,
headers: {
"Access-Control-Allow-Origin": "*",
},
devMiddleware: {
writeToDisk: true,
},
watchFiles: [
Path.join(__dirname, '../../django_app/**/*.py'),
Path.join(__dirname, '../../django_app/**/*.html'),
],
},
@michael-yin
It works like a charm! Thank you very much 🙂
I still can't believe that it took you less than half an hour... 😉
I followed the instructions about live reloading (reading "Live Reload" chapter) whilst trying to implement that feature in brand new Django/Wagtail/Vue/Webpack applications, but after executing
npm run start
, I keep getting the same error message.System: MacOS Monterey Version of
npm
: 8.1.2 Version of Node: 16.13.2Am I overlooking something very obvious?