ericclemmons / click-to-component

Option+Click React components in your browser to instantly open the source in VS Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

HosseinAgha opened this issue · comments

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.