Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

248
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda