Skip to content

bug: layout.tsx - Error: Unsupported Server Component type: undefined #39

@Nishchit14

Description

@Nishchit14

I have some common dialogs which are accessible from anywhere from the app. Thus I need to place them at root layout.tsx. But It is giving this error.

Image

layout.tsx

export default async function Layout({ children }: { children: any }) {
  return (
    <>
      {children}
      <CreateAssistantDialog.Root />
    </>
  )
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rd party toolsSupport or bugfixes for 3rd party tools

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions