rsnext/test/development
Balázs Orbán a1b20470c6
feat(error-overlay): hide <unknown>/stringify methods in <anonymous> file from stack (#62325)
### 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
2024-02-21 16:58:22 +01:00
..
acceptance feat(error-overlay): hide <unknown>/stringify methods in <anonymous> file from stack (#62325) 2024-02-21 16:58:22 +01:00
acceptance-app feat(error-overlay): hide <unknown>/stringify methods in <anonymous> file from stack (#62325) 2024-02-21 16:58:22 +01:00
api-cors-with-rewrite fix(#11930): rewritten api routes can correctly handle cors in dev mode (#38937) 2022-07-29 21:39:43 -05:00
app-dir test: rename node_modules_bak to node_modules (#62066) 2024-02-15 00:42:35 +01:00
app-hmr remove HMR polling in favor of more targeted events (#54406) 2023-08-23 16:25:57 -07:00
app-render-error-log Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
basic refactor(turbopack): resolve routes by page name instead of pathname (#61778) 2024-02-19 15:13:39 +00:00
client-dev-overlay fix: error overlay hijacking application focus (safari) (#53693) 2023-08-08 21:45:03 +02:00
correct-tsconfig-defaults chore(test): fix flaky tsconfig.json test (#53132) 2023-07-24 14:33:55 -07:00
dotenv-default-expansion Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
duplicate-pages Remove extra duplicate pages warning (#60113) 2024-01-02 14:55:55 +01:00
experimental-https-server test(integration): fix --turbo tests fixture setup (#55293) 2023-09-18 17:46:07 +00:00
gssp-notfound Ensure next.url is used instead of next.appPort (#44163) 2022-12-19 13:29:50 -08:00
jsconfig-path-reloading Add hasRedbox fix (#60522) 2024-01-15 09:36:44 +01:00
middleware-errors DX: hide the webpack info prefix for module paths (#62101) 2024-02-16 11:33:34 +01:00
middleware-warnings refactor tests for readability (#51051) 2023-06-21 19:47:21 +00:00
next-font Skip test that is also skipped in webpack (#61221) 2024-01-27 18:17:18 +01:00
pages-dir refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
project-directory-with-styled-jsx-suffix fix: allow user directory with styled-jsx prefix in next dev (#41484) 2022-10-19 19:01:48 +00:00
repeated-dev-edits refactor(tests): make chain more "correct" (#51728) 2024-02-14 20:14:24 +01:00
tsconfig-path-reloading merge pages and app overlays (#60899) 2024-02-14 11:28:13 +01:00
typescript-auto-install Remove installCommand on typescript-auto-install and pnpm-support (#58039) 2023-11-05 18:32:10 +01:00
watch-config-file Logging improvements (#55298) 2023-09-13 15:27:02 +02:00
webpack-issuer-deprecation-warning More Turbopack fixes (#56275) 2023-10-02 09:42:32 +02:00