We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26eac3b commit dc9af8aCopy full SHA for dc9af8a
packages/next/src/server/dev/hot-reloader-rspack.ts
@@ -34,6 +34,9 @@ export default class HotReloaderRspack extends HotReloaderWebpack {
34
private isEdgeServerCacheEnabled = false
35
36
public async afterCompile(multiCompiler: MultiCompiler): Promise<void> {
37
+ // Always initialize the fallback error watcher for Rspack.
38
+ // Rspack may restore/retain the previous build's error state, so without this
39
+ // a page that previously failed to build might not be rebuilt on the next request.
40
await super.buildFallbackError()
41
42
const rspackStartSpan = this.hotReloaderSpan.traceChild(
0 commit comments