I am encountering an issue while using the Button component from the npm library @chakra-ui/react
. When I try to use the Button element, it throws the following error:
TypeScript: Expression results in a union type that is too complex to represent. ts(2590) For example:
import {Button} from "@chakra-ui/react"
function Page() {
return <Button onClick={(event) => {}}>Text</Button>
}