The link to Server Action's error with Client Component doesn't redirect to the corresponding section
Javimartel opened this issue · 0 comments
Javimartel commented
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/condescending-shadow-lsly9n?workspaceId=ws_Sq4GMLXY8mhdG4GGt4EY7P
To Reproduce
- Start the application in development (next dev).
- Create a client component.
- Create a server action in a different file adding the "use server" directive to the top of the function body.
- Use the server action in the client component.
- Clicking on the "Read more" link from the error doesn't redirect to the corresponding client component section.
Current vs. Expected behavior
Once you get the error and you want to learn how to solve it, the link doesn't redirect to the client component section. Instead, it redirects you to the top of the page.
❌ Current link:
✅ Should be:
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Home
Available memory (MB): 15714
Available CPU cores: 16
Binaries:
Node: 20.6.1
npm: 10.9.2
Yarn: 1.22.22
pnpm: 9.15.0
Relevant Packages:
next: 15.1.0 // Latest available version is detected (15.1.0).
eslint-config-next: 15.1.0
react: 19.0.0
react-dom: 19.0.0
typescript: 5.7.2
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Developer Experience
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
No response