Skip to content

Not working with React Server Components (RSCs) in Next.js #78

@HosseinAgha

Description

@HosseinAgha

To Reproduce
Steps to reproduce the behavior:

  1. Create a Next.js 14+ application
  2. Create a page with some components under it
  3. Create a normal component and use it in the page
  4. Create a client only component and use it in the page
  5. The package only works with client only components

Expected behavior
Next.js 14+ components are RSCs by default.
It should work with both client components and server components.

Additional context
This looks like a React issue as __debugSource and __debugOwner are always null for RSCs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions