Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'DateRangePicker' cannot be used as a JSX component. #662

Open
faizanansari1 opened this issue Jan 22, 2025 · 2 comments
Open

'DateRangePicker' cannot be used as a JSX component. #662

faizanansari1 opened this issue Jan 22, 2025 · 2 comments

Comments

@faizanansari1
Copy link

I am using the 1.4.0 version i am facing the issue:
'DateRangePicker' cannot be used as a JSX component. Its type 'typeof DateRangePicker' is not a valid JSX element type. Types of construct signatures are incompatible. Type 'new (props: DateRangePickerProps) => DateRangePicker' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>'. Property 'refs' is missing in type 'Component<DateRangePickerProps, {}, any>' but required in type 'Component<any, any, any>'.

@szhang-str
Copy link

I have the same issue after upgrading react from 18.3.0 to 19.0.0

@lovelycas
Copy link

lovelycas commented Jan 29, 2025

i just installed v2.0.1 and facing the same issue. react version is 18.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants