Open gagzu opened 2 weeks ago
I'm getting the same error using ref
Do you plan to fix this error soon? I have the same problem.
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
Link to the code that reproduces this issue
https://github.com/gagzu/nextjs-issue-link-component-example
To Reproduce
To reproduce the error:
yarn install
yarn dev
Current vs. Expected behavior
The error I'm getting is: "Accessing element.ref was removed in React 19." The error is due to the Link component using
forwardRef
.The expected result is: Not seeing any error in the console.
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
No response