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

471
Views
React no permite importar tipos desde carpetas externas (React + TypeScript)

Tengo un proyecto React con TypeScript. Estoy tratando de importar tipos desde una carpeta externa, fuera de la carpeta React. Sin embargo, React no parece permitir esto. Estoy usando craco encima de CRA para ejecutar la aplicación.

Proyecto: https://github.com/accord-dot-app/app

 types/ - ... - deps.types.ts frontend/ - ... - src/ -- index.tsx

tipos/deps.tipos.ts:

 // ... imports export interface Deps { ... }

interfaz/src/index.tsx:

 import { Deps } from '.../deps.types.ts'; ...

Este es el error que recibo cuando craco start .

 File was processed with these loaders: * ./node_modules/react-scripts/node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js You may need an additional loader to handle the result of these loaders. | import ChannelLeave from '@accord/backend/ws/ws-events/channel-leave'; | > declare interface Deps { | channels: Channels; | /** @deprecated */

Si comento las líneas, obtengo otro error en otro archivo de tipo similar.

¿Cómo se pueden eliminar los errores?

about 4 years ago · Santiago Trujillo
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!