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
Yeah React is complaining about missing children prop after upgrading to >=17.
TS2769: No overload matches this call. Overload 1 of 2, '(props: ConnectedRouterProps<PoorMansUnknown> | Readonly<ConnectedRouterProps<PoorMansUnknown>>): ConnectedRouter<...>', gave the following error. Type '{ children: Element; history: History<PoorMansUnknown>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ConnectedRouter<PoorMansUnknown>> & Readonly<...>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ConnectedRouter<PoorMansUnknown>> & Readonly<...>'. Overload 2 of 2, '(props: ConnectedRouterProps<PoorMansUnknown>, context: any): ConnectedRouter<PoorMansUnknown>', gave the following error. Type '{ children: Element; history: History<PoorMansUnknown>; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ConnectedRouter<PoorMansUnknown>> & Readonly<...>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ConnectedRouter<PoorMansUnknown>> & Readonly<...>'..
@kpavlov7 thanks for the idea to fix it temporarily with patch-package
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: