Property ref
does not exist on <Link>
component when typedRoutes: true
#51907
Labels
bug
Issue was opened via the bug report template.
locked
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
TypeScript
Related to types with Next.js.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Routing (next/router, next/navigation, next/link), TypeScript (plugin, built-in types)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/mateuszaliyev/next-typed-routes-link-ref
To Reproduce
npm install
)npm run dev
)npx tsc
or check the/app/page.tsx
file to see the type errorDescribe the Bug
Property
ref
does not exist on<Link>
component whenexperimental.typedRoutes = true
.Expected Behavior
Property
ref
should exist on<Link>
component regardless of theexperimental.typedRoutes
setting.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: