ericclemmons / click-to-component

Option+Click React components in your browser to instantly open the source in VS Code
MIT License
1.79k stars 63 forks source link

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

Open HosseinAgha opened 7 months ago

HosseinAgha commented 7 months ago

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.