Skip to content

Table isRowHeader error (Next.js 13.3 + react-aria-components) #4390

@willfiore

Description

@willfiore

🐛 Bug Report

Rendering a Table (w/ TableHeader, Column children etc.) throws the following error:

Error: A table must have at least one Column with the isRowHeader prop set to true

The error is thrown even if the prop is set on a Column.

  • Strict mode is disabled from next.config.js
  • SSRProvider is used

I can only reproduce the issue in Next.js 13.3.0. Works fine in 13.2.4.

💻 Code Sample

Next.js 13.3.0 - broken:
https://codesandbox.io/p/sandbox/react-aria-next-js-13-3-0-broken-table-071o7w?file=%2Fapp%2Fpage.tsx

Next.js 13.2.4 (otherwise identical) - works:
https://codesandbox.io/p/sandbox/react-aria-next-js-13-2-4-working-table-t8keyk?file=%2Fapp%2Fpage.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    RACbugSomething isn't working

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions