Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__debugSource and __debugOwner are always undefined for RSCs #59457

Open
1 task done
HosseinAgha opened this issue Dec 10, 2023 · 1 comment
Open
1 task done

__debugSource and __debugOwner are always undefined for RSCs #59457

HosseinAgha opened this issue Dec 10, 2023 · 1 comment
Labels
bug Issue was opened via the bug report template.

Comments

@HosseinAgha
Copy link

HosseinAgha commented Dec 10, 2023

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/suspicious-euclid-qq4zfy

To Reproduce

Run the repro sandbox and check the console. I log the React Fiber instance for both components and the value of the __debugSource is null for Server Component.

Current vs. Expected behavior

The server component fiber nodes does not contain the __debugSource and __debugOwner information while the client only components do. All components that get rendered should have the debugging information during development.

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000
Binaries:
  Node: 20.8.0
  npm: 10.1.0
  Yarn: 4.0.2
  pnpm: N/A
Relevant Packages:
  next: 14.0.4
  eslint-config-next: 14.0.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router

Additional context

This bug impacts tools that rely on __debugSource in development. Please check ericclemmons/click-to-component#78

@HosseinAgha HosseinAgha added the bug Issue was opened via the bug report template. label Dec 10, 2023
@xinyao27
Copy link

xinyao27 commented Jan 1, 2024

Same problem.
I am using https://github.com/zthxxx/react-dev-inspector, which depends on __debugSource to obtain the component file path in development environment. Now, the lack of __debugSource in app router causes this function to be unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants