diff --git a/packages/next/client/dev/error-overlay/hot-dev-client.js b/packages/next/client/dev/error-overlay/hot-dev-client.js index d6b0918952bcd..a9c8d0e9d5fd1 100644 --- a/packages/next/client/dev/error-overlay/hot-dev-client.js +++ b/packages/next/client/dev/error-overlay/hot-dev-client.js @@ -260,6 +260,10 @@ function processMessage(e) { ) return handleSuccess() } + case 'serverComponentChanges': { + // Server component changes don't apply to `pages`. + return + } default: { if (customHmrEventHandler) { customHmrEventHandler(obj)