Skip to content

Conversation

@chungweileong94
Copy link
Contributor

Problem

When typedRoutes is enabled, some of the types are missing.

For example, doing import { useLinkStatus } from 'next/link' will receive a type error where the useLinkStatus cannot be found from next/link.

image

Solution

Re-export everything from next/dist/client/link.js from the generated .next/types/link.d.ts

@ijjk
Copy link
Member

ijjk commented Aug 20, 2025

Allow CI Workflow Run

  • approve CI run for commit: 7987a02

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@eps1lon eps1lon requested a review from bgub August 20, 2025 14:41
bgub
bgub previously requested changes Aug 20, 2025
Copy link
Contributor

@bgub bgub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small tweak (change the export), then it looks good to me!

Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
@huozhi huozhi added the CI approved Approve running CI for fork label Aug 20, 2025
@vercel vercel deleted a comment from ijjk Aug 20, 2025
@bgw bgw enabled auto-merge (squash) August 20, 2025 17:23
@ijjk ijjk requested a review from bgub August 20, 2025 20:02
@bgw bgw merged commit 902ad4a into vercel:canary Aug 20, 2025
312 of 324 checks passed
@github-actions github-actions bot added the locked label Sep 4, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CI approved Approve running CI for fork locked type: next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants