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

247
Vistas
How can I import a component from GitHub repository

what I have done so far

step 1. yarn add githubURL

step 2. "comet-chat-repo": "https://github.com/Vivek/cometChatRepo.git",

above file added in package.json

step 3. Trying to import the components from the GitHub repo

import { CometChatGroupListWithMessages } from 'comet-chat-repo';

Module not found: Can't resolve 'comet-chat-repo' in 'C:\Users

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

0

npm install git://github.com/username/repo.git#branch-name

yarn add git://github.com/username/repo.git#branch-name

// Example
yarn add git://github.com/denvash/react-pagination-example.git#master

Then import it according to the repo path, for example:

import Pagination from 'react-pagination/src/components/Pagination.react'
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