You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to React 19, the useCountUp hook started to throw a TypeScript warning.
Type 'RefObject<HTMLElement | null>' is not assignable to type 'string | RefObject<HTMLElement>'.
Type 'RefObject<HTMLElement | null>' is not assignable to type 'RefObject<HTMLElement>'.
Type 'HTMLElement | null' is not assignable to type 'HTMLElement'.
Type 'null' is not assignable to type 'HTMLElement'.ts(2322)
Adding support for React 19 and generating new types should fix the issue.
The text was updated successfully, but these errors were encountered:
After upgrading to React 19, the
useCountUp
hook started to throw a TypeScript warning.Adding support for React 19 and generating new types should fix the issue.
The text was updated successfully, but these errors were encountered: