Rank, 14 days: 6 on the Next.js sheet
4 people reported

All time, since Oct 9, including 3 thumbs-up on GitHub.

Validator.ts unused imports error

“.next/dev/types/validator.ts(5,50): error TS6196: 'AppRouteHandlerRoutes' is declared but never used.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/next-js/issues/8725/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Generated validator.ts unused imports fail type-check with noUnusedLocals. After next dev, tsc --noEmit and next build fail on .next/dev/types/validator.ts in apps with no route.ts.

Is this your bug?

File my report
Where
type checking
Error text
.next/dev/types/validator.ts(5,50): error TS6196: 'AppRouteHandlerRoutes' is declared but never used.
Versions
16.4.0
Platforms
Windows
How bad
Breaks a normal workflow.

Original reports1, newest first

  1. Unused imports in generated .next/dev/types/validator.ts fail type-check with noUnusedLocals for metadata-only apps (since 16.4.0)On GitHub#99919

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.