I built a nextjs project, facing an error when want to deploy it to vercel.like below:
./components/ui/input.tsx
6:18 Error: An interface declaring no members is equivalent to its supertype. @typescript-eslint/no-empty-object-type
I use google and chatgpt to try many method but still failed, such as : // eslint-disable-next-line @typescript-eslint/no-empty-interface or add rules below :
{
"rules": {
"@typescript-eslint/no-empty-interface": "off"
}
}
both unavailablbe. the error is in the page below, any one can help will be high appreciated.
/* eslint-disable @typescript-eslint/no-empty-interface */
import * as React from "react"
import { cn } from "@/lib/utils"
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
const Input = React.forwardRef<HTMLInputElement, InputProps>(
({ className, type, ...props }, ref) => {
return (
<input
type={type}
className={cn(
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
className
)}
ref={ref}
{...props}
/>
)
}
)
Input.displayName = "Input"
export { Input }