a1b20470c6
### What? Clean up the error overlay: <details> <summary><b>Before:</b></summary> <img src="https://github.com/vercel/next.js/assets/18369201/22c3ab2c-8445-4c25-8554-a5ab51100af4"/> </details> <details> <summary><b>After:</b></summary> <img src="https://github.com/vercel/next.js/assets/18369201/403c30fc-8b27-4529-838c-47d9cbe52381"/></details> I also simplified the current code as it was likely using `useMemo` a bit eagerly. ### Why? This is an unactionable line by the user, no value in showing it in the overlay. ### How? Filter out the frame before rendering it in the overlay. This answers [this question](https://github.com/vercel/next.js/pull/62206#issuecomment-1956636486) too, since the module grouping is local. Now that `<anonymous>` is filtered out, the two Next.js groups are now merged into one, further cleaning up the stack. Closes NEXT-2505 |
||
---|---|---|
.. | ||
acceptance | ||
acceptance-app | ||
api-cors-with-rewrite | ||
app-dir | ||
app-hmr | ||
app-render-error-log | ||
basic | ||
client-dev-overlay | ||
correct-tsconfig-defaults | ||
dotenv-default-expansion | ||
duplicate-pages | ||
experimental-https-server | ||
gssp-notfound | ||
jsconfig-path-reloading | ||
middleware-errors | ||
middleware-warnings | ||
next-font | ||
pages-dir | ||
project-directory-with-styled-jsx-suffix | ||
repeated-dev-edits | ||
tsconfig-path-reloading | ||
typescript-auto-install | ||
watch-config-file | ||
webpack-issuer-deprecation-warning |