Skip to content

HMR for _app can fail to trigger when added after starting dev server #28888

@ijjk

Description

@ijjk

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 #28279

Metadata

Metadata

Assignees

Labels

WebpackRelated to Webpack with Next.js.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions