Open
Description
Description
When using a component that has a sub-component pattern, like PageLayout
, the component is not able to be used in a React Server Component as it has the following error:
Error: Could not find the module ".../react/lib-esm/index.js#PageLayout#Header" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
Steps to reproduce
-
Create an application using the
app-router
example -
Try to use
PageLayout
or other components that use the sub-component pattern inpage.tsx
import {PageLayout} from '@primer/react' export default function IndexPage() { return ( <PageLayout> <PageLayout.Header>Header</PageLayout.Header> <PageLayout.Content>Content</PageLayout.Content> </PageLayout> ) }
-
Observe the error above
Version
v36.x
Browser
No response