mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This fixes the issue that build error is not cleared correctly during `next dev` even if the build succeeds, and we have to re-run `next dev` to make it work. It appears only when: 1. page runtime is `edge` 2. use webpack hot reloader 3. import components in the `edge` page Reproduction: https://github.com/pacexy/nextjs-edge-webpack-hmr-reproduction I recorded a screenshot to make it easier to understand: https://github.com/vercel/next.js/assets/32255488/0ddc21bf-2ea7-49ce-b682-c89dea757c61 Closes NEXT-2168 --------- Co-authored-by: Jiachi Liu <[email protected]>