WhatsApp-Clone-Tutorial icon indicating copy to clipboard operation
WhatsApp-Clone-Tutorial copied to clipboard

History unknown error

Open eibay opened this issue 4 years ago • 0 comments

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 |       />

eibay avatar Oct 07 '20 09:10 eibay