Open lunelson opened 3 years ago
I have the same issue with webpack 5
Installing webpack
to the project solve it... npm i webpack@latest --save-dev
https://github.com/preactjs/prefresh/pull/361 and https://github.com/preactjs/prefresh/pull/362 have been merged and have solved the issue, but I had to manually upgrade @prefresh/webpack
to fix it. Maybe @JoviDeCroock could bump the prefresh in this package again? Thanks!
On startup with a new Next.js project (
v10.2.2)
configured with this plugin, and with thenext.config.js
using thefuture.webpack5
option in order to enforce webpack 5 (usually it falls back to webpack 4 if a custom webpack config is detected, as is the case with this plugin), thedev
command fails with the following message.The message goes away if I explicitly install
webpack
to the project.