[Bug] Strict TypeScript checks (noUnusedLocals) break production build #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
frontend/tsconfig.jsonenables"strict": trueand"noUnusedLocals": true. Several files declare variables or imports that are never read:frontend/src/features/auth/LoginView.tsx:const res = await fetch(...)(resis never used).frontend/src/App.tsx:import { AccessDeniedView } from './features/auth/AccessDeniedView'(imported but unused in JSX).import React from 'react'with"jsx": "react-jsx"whereReactis only referenced as a type (React.FC).Impact
tscfails withTS6133: '...' is declared but its value is never read, blockingnpm run build.Expected Behavior
Clean up unused imports/variables and import types using
import { type FC } from 'react'.