ericclemmons / ericclemmons/click-to-component
Not working with React Server Components (RSCs) in Next.js
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**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](https://nextjs.org/docs/app/building-your-application/rendering/server-components#using-server-components-in-nextjs) 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.