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

190
Views
Proyecto nativo de reacción mecanografiado recién clonado plagado de errores

Acabo de clonar un proyecto TypeScript React-Native en el trabajo y está plagado de una variedad de errores en mi máquina por alguna razón, el contratista que creó la aplicación no está seguro de por qué. Aquí hay algunos ejemplos de los errores.

 import BackButton from "../assets/images/backbutton.png"; - Cannot find module or its corresponding type declarations. ts(2307) const Title = ({ children }) => - Binding element 'children' implicitly has an 'any' type. ts(7031)

Aquí está mi tsconfig.json:

 { "compilerOptions": { "allowSyntheticDefaultImports": true, "jsx": "react-native", "lib": [ "dom", "esnext" ], "moduleResolution": "node", "noEmit": true, "skipLibCheck": true, "resolveJsonModule": true, "strict": true }, "extends": "expo/tsconfig.base" - File 'expo/tsconfig.base' not found.enter code here }

Como puede ver, parece que se trata de algún tipo de problema de configuración con respecto a TypeScript. Cualquier sugerencia es apreciada.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La imagen debe importarse utilizando require en lugar de importar.

 const backBtnImg = require('../assets/images/backbutton.png');
about 4 years ago · Juan Pablo Isaza 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!