Files
Zack TannerandGitHub d58fd68f0a fix parallel route tests & improve error for conflicting pages (#53752)
This fixes some tests that were disabled due to a missing `page` segment for the corresponding slots in `/parallel/nested`. 

While fixing, I also noticed if you accidentally create two pages that resolve to the same URL segment (which is fairly easy to do accidentally do with route groups), we were throwing an unhelpful error of "Cannot find module: '<snip>/page_client-reference-manifest.js'" when building (and fail silently in dev). For example, this scenario was throwing a manifest error:

```
app
  (groupa)
    page.tsx
  (groupb)
    page.tsx
```

This will now throw with a more helpful error when resolving parallel segments if the page segment was already resolved. This also re-enables the disabled tests.

Closes NEXT-1440
Fixes #53569 (by virtue of throwing a more helpful error)
2023-08-08 22:56:39 +00:00

19 lines
391 B
JavaScript

import './style.css'
export default function Parallel({ foo, bar, children }) {
return (
<div id="parallel-layout">
parallel/layout:
<div className="parallel" title="@foo">
{foo}
</div>
<div className="parallel" title="@bar">
{bar}
</div>
<div className="parallel" title="children">
{children}
</div>
</div>
)
}