merkle-open / generator-nitro

Your frontend? Fuel it with Nitro! Develop your frontend with a proven but flexible Node.js app, even in a large team.
MIT License
71 stars 28 forks source link

Regression: webpack watch mode no longer works #176

Closed ernscht closed 4 years ago

ernscht commented 4 years ago

Type of issue

The issue refers to the:

Environment

Node.js v12.16.3
win32 10.0.18363
Nitro Version 5.2.9 / 5.3.0

Expected behavior

Webpack recompilation and hot reloading for css an js works in dev mode

Current behavior

Webpack recompilation and hot reloading for css and js does not work in dev mode (npm start)

ernscht commented 4 years ago

It turns out that the problem is not directly caused by a directly used package.

Works with package-lock.json on the 5.2.9 release date, currently does not work when reinstalling. [Here the diff]

ernscht commented 4 years ago

Had to downgrade 'watchpack' manually to version 1.6.1. Workaround published with 5.3.1

ernscht commented 4 years ago

Workaround only works in monorepo

ernscht commented 4 years ago

In Nitro version 5.3.3 the webpack watcher works again in your project.

Without an update you can also simply add the package "watchpack" in version 1.6.1 as devDependency: "watchpack": "1.6.1"