Skip to content

History unknown error #90

Description

@eibay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions