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
run yarn then yarn start. during compile time you get:
[tsl] ERROR in Main.tsx(28,8)
TS2786: 'RangePicker' cannot be used as a JSX component.
Its instance type 'Component<RangePickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
What is expected?
No compile error
What is actually happening?
While this issue claimed to be fixed here: #34973 I still see it is not the case in the latest library (4.20.6). is it some regression?
p.s. yarn.lock and node_modules where deleted prior the test, so it is an absolutely clean and fresh version
Environment
Info
antd
4.20.6
React
18
System
any
Browser
any
The text was updated successfully, but these errors were encountered:
I ran "preinstall": "npx npm-force-resolutions" but it throw few errors, errors are mainly using hooks wrongly, after fixing I ran yarn add @types/react@latest
Reproduction link
https://github.com/kirill-linnik/react-redux/tree/main/src
Steps to reproduce
run
yarn
thenyarn start
. during compile time you get:[tsl] ERROR in Main.tsx(28,8)
TS2786: 'RangePicker' cannot be used as a JSX component.
Its instance type 'Component<RangePickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
What is expected?
No compile error
What is actually happening?
While this issue claimed to be fixed here: #34973 I still see it is not the case in the latest library (4.20.6). is it some regression?
p.s. yarn.lock and node_modules where deleted prior the test, so it is an absolutely clean and fresh version
The text was updated successfully, but these errors were encountered: