Question: FullScreen: TS2769: No overload matches this call. Overload 1 of 2
I use the FullScreen
component from https://www.npmjs.com/package/react-request-fullscreen in my React TS app. This component was working properly for around 1 year. Not so sure if I updated this dependency recently but it keeps coming up with an error of not allowing the FullScreen
component to have any children. I have also tried including the props onFullScreenChange
and onFullScreenError
but still no luck. In my package.json
, the dependency shows the FullScreen
version of ^1.1.2
and I checked the official site and this error should not be appearing. Need help thanks.
The Error:
TS2769: No overload matches this call. Overload 1 of 2, '(props: Props | Readonly<Props>): FullScreen', gave the following error. Type '{ children: Element; }' is missing the following properties from type 'Readonly<Props>': onFullScreenChange, onFullScreenError Overload 2 of 2, '(props: Props, context: any): FullScreen', gave the following error. Type '{ children: Element; }' is missing the following properties from type 'Readonly<Props>': onFullScreenChange, onFullScreenError 380 | <AppStatusContext.Consumer> 381 | {(appstatus: AppStatus_) => appstatus && <> > 382 | <FullScreen> | ^^^^^^^^^^ 383 | <div></div> 384 | </FullScreen> 385 |