rsnext/test/e2e/app-dir
Zack Tanner 4994a428ae
improve error DX on pages with RSC build errors (#52843)
### What?
- Visiting a page in the app router without a proper component export doesn't show the dev overlay, but logs errors to the console
- When it does show the error overlay (e.g. during an HMR event), the error message was sharing the module code itself rather than the component path, making it hard to debug

### Why?
`createComponentTree` can throw these errors before the AppRouter tree is mounted, leaving the errors uncaught by the dev overlay.

### How?
This wraps the server root in the `ReactDevOverlay` when in dev mode with a minimal "HMR" for when the server component is edited (to reload the page).

Closes NEXT-308
2023-07-20 00:32:57 +00:00
..
_allow-underscored-root-directory Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
actions Test Progressive Enhancement of Server Actions (#52062) 2023-07-06 18:21:59 +02:00
app Setting up third-parties package (#51194) 2023-07-18 10:52:39 -07:00
app-a11y Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-alias Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
app-basepath Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-client-cache Renable flaky tests disabled before (#51680) 2023-07-03 09:29:28 +00:00
app-compilation Fix HMR for missing dependencies in next-app-loader (#51778) 2023-06-25 19:26:09 +00:00
app-css Ensure root layout only render once per request (#52589) 2023-07-13 17:34:31 +02:00
app-css-pageextensions Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-edge Fix bundle path normalization for /index routes (#52650) 2023-07-13 17:36:43 +02:00
app-edge-root-layout Fix static metadata routes runtime when root layout is in edge runtime (#50351) 2023-05-25 15:39:57 -07:00
app-external Avoid unnecessary resolveExternal calls (#52053) 2023-07-03 10:34:46 +02:00
app-middleware type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
app-prefetch Add unique search query for RSC requests to be cacable on CDN (#50970) 2023-06-12 11:52:36 +02:00
app-prefetch-false type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
app-rendering Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-routes Support basePath with edge runtime for Custom App Routes (#52910) 2023-07-19 23:54:34 +00:00
app-routes-trailing-slash Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
app-static Move App Pages rendering into bundle (#52290) 2023-07-12 18:28:06 +00:00
app-validation Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
asset-prefix Add new build and test workflow (#50436) 2023-05-27 21:02:31 -07:00
async-component-preload Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
autoscroll-with-css-modules Updates prettier to latest version. (#51000) 2023-06-09 14:58:19 +00:00
back-button-download-bug Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
build-size Split the client reference manifest file to be generated per-entry (#52450) 2023-07-10 09:48:03 +02:00
create-next-app-template Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
create-root-layout Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
crypto-globally-available Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
deopted-into-client-rendering-warning Ensure NEXT_DYNAMIC_NO_SSR_CODE has a unique name (#50219) 2023-05-23 08:37:57 -07:00
draft-mode Fix usage of router.refresh() with Draft Mode in App Router (#50941) 2023-06-09 00:15:55 +00:00
dynamic Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
dynamic-href Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
edge-runtime-node-compatibility Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
error-boundary-and-not-found-linking Failing tests for 404 back/forward (#50047) 2023-05-22 17:04:36 +02:00
front-redirect-issue Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
global-error Catch layout error in global-error (#52654) 2023-07-14 00:43:40 +00:00
hello-world Bail out of 404 page when favicon.ico doesn't exist (#50795) 2023-06-06 10:58:40 +02:00
hooks Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
i18n-hybrid Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
import Support scroll: false for Link component for app router (#51869) 2023-07-04 10:25:25 +02:00
interception-middleware-rewrite Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
interoperability-with-pages improve error DX on pages with RSC build errors (#52843) 2023-07-20 00:32:57 +00:00
layout-params Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
mdx Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
metadata Support metadata exports for server components not-found (#52678) 2023-07-14 22:33:47 +00:00
metadata-dynamic-routes Fix metadata layer webpack rule for server-only (#52403) 2023-07-09 18:23:51 +00:00
metadata-edge Fix tree shaking for image generation module (#51950) 2023-07-04 18:19:08 +00:00
metadata-missing-metadata-base fix: metadatabase warning message (#52363) 2023-07-07 00:08:10 +00:00
metadata-suspense Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
navigation Support scroll: false for Link component for app router (#51869) 2023-07-04 10:25:25 +02:00
next-config Avoid loading Next.js config again in render workers (#52587) 2023-07-12 11:21:05 +00:00
next-font Simplify server CSS handling (#51018) 2023-06-14 14:43:08 -07:00
next-image fix: edge runtime with next/legacy/image (#50343) 2023-05-26 13:38:10 +02:00
not-found Fix runtime edge not-found handling (#52754) 2023-07-16 22:21:29 +00:00
pages-to-app-routing Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
parallel-routes-and-interception Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
parallel-routes-not-found Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
rewrites-redirects Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
root-layout Ensure root layout only render once per request (#52589) 2023-07-13 17:34:31 +02:00
root-layout-redirect Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
root-layout-render-once Ensure root layout only render once per request (#52589) 2023-07-13 17:34:31 +02:00
route-page-manifest-bug Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
router-autoscroll Support scroll: false for Link component for app router (#51869) 2023-07-04 10:25:25 +02:00
router-stuck-dynamic-static-segment Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
rsc-basic Fix tracking of ContextModule (#52795) 2023-07-17 17:41:04 +00:00
search-params-react-key Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
searchparams-static-bailout Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
set-cookies type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
similar-pages-paths Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
test-template/{{ toFileName name }} Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
trailingslash Add new build and test workflow (#50436) 2023-05-27 21:02:31 -07:00
underscore-ignore-app-paths Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
use-params Update default moduleResolution in tsconfig.json from node to bundler (#51957) 2023-07-18 15:11:09 +00:00
use-selected-layout-segment-s Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
with-babel Apply optimization to middleware when using babel (#51067) 2023-06-09 13:33:14 -07:00
with-exported-function-config add version to function config manifest (#52507) 2023-07-10 20:28:59 +00:00