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

246
Views
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 answers
Answer question

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 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!