Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Object is of type 'unknown'. TS2571 #4

Open
Uffi64 opened this issue Dec 16, 2021 · 0 comments
Open

Object is of type 'unknown'. TS2571 #4

Uffi64 opened this issue Dec 16, 2021 · 0 comments

Comments

@Uffi64
Copy link

Uffi64 commented Dec 16, 2021

Just installed it like described.

After

npm run start

I get this as well on the console as well as on in the browser.

/root/public-phoenix-web/src/web/pages/challenge/Challenge.tsx
TypeScript error in /root/public-phoenix-web/src/web/pages/challenge/Challenge.tsx(70,46):
Object is of type 'unknown'.  TS2571

    68 |     const {location, history} = this.props;
    69 | 
  > 70 |     if (!_.isNil(location.state) && !_.isNil(location.state.challengeId)) {
       |                                              ^
    71 |       const {challengeId} = location.state;
    72 | 
    73 |       challengeState.fetchChallenge({id: challengeId}).then(response => {

Any hints on that?

thx
Uffi

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant