WhatsApp-Clone-Tutorial
WhatsApp-Clone-Tutorial copied to clipboard
History unknown error
I cloned the final repository for both server and client and run the necessary yarn installs and tests and everything passes. Now when I run yarn start, this error message comes up...
The types of 'location.state' are incompatible between these types.
Type 'unknown' is not assignable to type 'PoorMansUnknown'.
Type 'unknown' is not assignable to type '{}'. TS2322
24 | component={withAuth(
25 | ({ match, history }: RouteComponentProps<{ chatId: string }>) => (
> 26 | <ChatRoomScreen chatId={match.params.chatId} history={history} />
| ^
27 | )
28 | )}
29 | />