Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
I get an error with TypeScript react after running, while on other devices it can, only on my mac

I get an error with typescript after running, while on other devices it can, only on my mac. Am I missing something or the version difference? I'm so confused please help me

Failed to compile

/Users/tq-web/src/hooks/useRequest/useRequest.ts
TypeScript error in /Users/tq-web/src/hooks/useRequest/useRequest.ts(24,47):
Type 'unknown' is not assignable to type 'null'.  TS2322

    22 |       setState({ status: RequestStatus.COMPLETED, error: null, data })
    23 |     } catch (error) {
  > 24 |       setState({ status: RequestStatus.ERROR, error: error, data: null })
       |                                               ^
    25 |     }
    26 |   }
    27 |
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!