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

417
Views
Unable to use typescript with expo - "It looks like you're trying to use TypeScript but don't have the required dependencies installed"

I am receiving an error while trying to use Typescript with my existing expo project.

While following the docs, I created a tsconfig.json file in the project root.

When running expo start, I am prompted to install the typescript dependencies. However, after these are successfully installed (tick message appears in console: √ Installed typescript@~4.3.5, @types/react@~17.0.21, @types/react-native@~0.67.6), I receive the following error:

It looks like you're trying to use TypeScript but don't have the required dependencies installed.

Please install @types/react by running:

yarn add --dev @types/react@~17.0.21

If you're not using TypeScript, please remove the TypeScript files from your project and delete the tsconfig.json.

error Command failed with exit code 1.

After following the instructions and running the yarn add .... command, I keep seeing the same error message.

I have tried deleting the node_modules folder and package-lock.json file to no avail. I have also tried following this answer. Any assistance would be appreciated, thank you.

about 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Just re-install expo-cli npm install -g expo-cli.

about 4 years ago · Santiago Trujillo Report

0

yarn add expo-cli

solved for me.

about 4 years ago · Santiago Trujillo Report

0

Seems to be a bug. It works if I install @types/react on the specific version that Expo requests (17.0.21).

yarn add --dev @types/react@17.0.21
about 4 years ago · Santiago Trujillo Report
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!