HMR for _app can fail to trigger when added after starting dev server #28888
Labels
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
Webpack
Related to Webpack with Next.js.
When adding an
_app
file after starting the dev server (next dev
) HMR can fail to trigger in some cases like when an error is added in_app
(a syntax error or missing import) and then the error is fixed.We need to ensure the HMR behaves correctly regardless of if
_app
was present before or after starting the dev server.This might be related to the new
fallback
handling we're leveraging in webpack 5 that was added in #28279The text was updated successfully, but these errors were encountered: