Property 'children' does not exist on type 'IntrinsicAttributes & IAzureADProps'

29 Views Asked by At

We are using react-aad-msal for AD authentication. After upgrading my application to react 18, I am getting below error:

TS2322: Type '{ children: ({ login, authenticationState, error, accountInfo, }: IAzureADFunctionProps) => void | Element; provider: MsalAuthProvider; reduxStore: Store<{ appState: AppState; ... 10 more ...; webhooks: InitialState; }, AnyAction> & { ...; }; forceLogin: true; }' is not assignable to type 'IntrinsicAttributes & IAzureADProps'.
  Property 'children' does not exist on type 'IntrinsicAttributes & IAzureADProps'.
    65 |       <ConnectedRouter history={history}>
    66 |         <ThemeProvider theme={theme}>
  > 67 |           <AzureAD provider={authProvider} reduxStore={store} forceLogin={true}>
       |            ^^^^^^^
    68 |             {({
    69 |               login,
    70 |               authenticationState,

I am trying to upgrade my existing application 16 to 18.

0

There are 0 best solutions below