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
Compiling the web module fails with the following error:
`TS2322: Type '{ children: Element; history: MemoryHistory; }' is not assignable to type 'IntrinsicAttributes & RouterProps'.
Property 'history' does not exist on type 'IntrinsicAttributes & RouterProps'.
62 |
63 | render(
This happens on Landing.test.tsx and Welcome.test.tsx.
To work around the issue and make the compile work I changed to the following but I don't know if this gives the intended behaviour since I'm not familiar with React: render( <Router location={history.location} navigator={history}> <Landing /> </Router>, { wrapper: TestWrapper } );
The text was updated successfully, but these errors were encountered:
Compiling the web module fails with the following error:
`TS2322: Type '{ children: Element; history: MemoryHistory; }' is not assignable to type 'IntrinsicAttributes & RouterProps'.
Property 'history' does not exist on type 'IntrinsicAttributes & RouterProps'.
62 |
63 | render(
This happens on Landing.test.tsx and Welcome.test.tsx.
To work around the issue and make the compile work I changed to the following but I don't know if this gives the intended behaviour since I'm not familiar with React:
render( <Router location={history.location} navigator={history}> <Landing /> </Router>, { wrapper: TestWrapper } );
The text was updated successfully, but these errors were encountered: