Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

129
Vistas
How to import files outside src in crete-react-app

In general, I have a project that contains the app and lib folders. in the base I should have all the components, in short, this is my component library and from there I need to import what I need into the project into the app folder.

app
   > electron
   > viewer
   > web
lib
   > base
   > game

but in create-react-app the webpack is configured so that I cannot import outside the src folder. I tried to write in .env NODE_PATH = ./../../ and it helped, but other errors were already pouring in: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See webpack.js.org - points to my exported component from there. Help, how can I make the lib / base repository a library and import everything I need from there in a project that lies outside. Thank you

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You would need to eject from Create React App and then modify your webpack config to allow it to search directories other than src/

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda