Giter Site home page Giter Site logo

cometchat / cometchat-sample-app-react Goto Github PK

View Code? Open in Web Editor NEW
263.0 22.0 235.0 71.26 MB

Voice & Video Calling and Text Chat App for React (JavaScript/Web)

Home Page: https://www.cometchat.com

License: Other

HTML 0.79% TypeScript 99.17% CSS 0.04%
react reactjs chat app ui javascript web voice video calling

cometchat-sample-app-react's People

Contributors

aaliya-shaikh avatar anantgarg avatar gajraajay avatar juhi-saha avatar ketanyekale avatar mayur-bhandari avatar mayurbhandari10 avatar nakraniprakash avatar nakul-cometchat avatar prakash-cometchat avatar prathamesh-cometchat avatar priyadarshininadar avatar raj-dubey1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cometchat-sample-app-react's Issues

Weird warning of missed libraries on start

Describe the problem

I downloaded repository and did yarn start. I see following warnings/errors in the console


Compiled with warnings.

Module not found: Error: Can't resolve '@cometchat/chat-uikit-angular' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

Module not found: Error: Can't resolve '@cometchat/chat-uikit-angular/package.json' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

Module not found: Error: Can't resolve '@cometchat/chat-uikit-vue' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

Module not found: Error: Can't resolve '@cometchat/chat-uikit-vue/package.json' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./node_modules/@cometchat/chat-sdk-javascript/CometChat.js 11891:4-44
Module not found: Error: Can't resolve '@cometchat/chat-uikit-angular' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

WARNING in ./node_modules/@cometchat/chat-sdk-javascript/CometChat.js 11891:73-126
Module not found: Error: Can't resolve '@cometchat/chat-uikit-angular/package.json' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

WARNING in ./node_modules/@cometchat/chat-sdk-javascript/CometChat.js 11894:4-40
Module not found: Error: Can't resolve '@cometchat/chat-uikit-vue' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

WARNING in ./node_modules/@cometchat/chat-sdk-javascript/CometChat.js 11894:69-118
Module not found: Error: Can't resolve '@cometchat/chat-uikit-vue/package.json' in '/Users/test/chat/node_modules/@cometchat/chat-sdk-javascript'

What was the expected behavior?

I want to use this example app as a foundation for my project so I don't expect any errors in the console output.

getting TypeError: Cannot read property 'theme' of undefined

Describe the problem

When I download the quickstart and run yarn install and start the application and go to the conversion-list I get the following error TypeError: Cannot read property 'theme' of undefined

image

What was the expected behavior?

I expect to see a list of conversations

Reproduction

Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
Note: If clear, reproducable steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.

It occurs in the v2 and v3 app

U use the default chat app and only change the values in consts.js to the correct values

npm start fails

Describe the problem

After following the installation instructions and trying to run the project, I immediately get this error:

/Users/me/javascript-react-chat-app/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:130:10)
    at module.exports (/Users/me/javascript-react-chat-app/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:417:16)
    at /Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:452:10
    at /Users/me/javascript-react-chat-app/node_modules/webpack/lib/NormalModule.js:323:13
    at /Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/me/javascript-react-chat-app/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/me/javascript-react-chat-app/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.0.1

What was the expected behavior?

For the project to run

Reproduction

  1. Clone repo
  2. Install dependencies
  3. Run npm start

Environment

Please provide the following:

  • Node.js v17.01
  • MacOS 12.1 Montery Apple M1 Pro
  • iTerm running in Rosetta mode

Trying to use the demo but keeps showing CORS error

Hi, downloaded the demo and provided the credentials, after running:

npm install
npm run dev

The server now listens on port 5000

So far, so good. When I access the site it shows up fine but when trying to login, I keep getting:

POST https://api.cometchat.com/v1.8/users/superhero1/auth_tokens 500
localhost/:1 Access to fetch at 'https://api.cometchat.com/v1.8/users/superhero1/auth_tokens' from origin 'http://localhost:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Any ideas?

Not able to install the sample

When i trying install react sample it didn't complile becuase of angualr and vue package absence, Not sure why it asking angular and vue pakacge to miss?
Screenshot from 2024-01-03 17-24-38

A line of code is not correct

Describe the problem

When I did the npm start after following all the instructions, I am getting this error Module not found: Can't resolve '../../cometchat-pro-react-ui-kit/CometChatWorkspace/src' in 'C:\Users\hp\desktop\javascript-react-chat-apavascript-react-chat-app\src\defaultPages\App'

What was the expected behavior?

The screen should display the sample react app
The error is present in this file ./src/defaultPages/App/index.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.