cometchat-sample-app-react icon indicating copy to clipboard operation
cometchat-sample-app-react copied to clipboard

Weird warning of missed libraries on start

Open dimaportenko opened this issue 1 year ago • 4 comments
trafficstars

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.

dimaportenko avatar Dec 14 '23 10:12 dimaportenko

Keagan (CometChat Team) replied:

Hello,

Thank you for reaching out and sharing your concern with us.

I am going to hand this over to a Senior Support Engineer with additional product experience in this area. They will be best positioned to find the fastest resolution for you and will reach out as soon as possible.

Regards

Keagan Ellis CometChat

Juhi (CometChat Team) replied:

Hello there,

The dependencies aren't installed hence the errors. You will need to install them with yarn or npm. yarn install OR npm install

We suggest you follow the steps mentioned here to get started with our React sample app.

Let us know if you need any further assistance.

Juhi Saha Associate Principal Software Developer CometChat

Yes, I installed dependencies. It's not the issue. If you look at the errors, there are complaints about angular and vue libraries. I believe it's not needed in the react app.

dimaportenko avatar Dec 16 '23 09:12 dimaportenko

Mayur (CometChat Team) replied:

Hi there,

Our CometChat SDK checks for the UI Kit that is installed in the application & since you are running the react UI Kit it cannot find other UI Kits it gives a warning. However, these warning should not affect your application in any way. We have sent this feedback to our Product Engineering team & we will keep you updated once this is resolved on our end.

Thanks,

Mayur Bhandari CometChat

Afroz Khan (CometChat Team) replied:

Hi there,

The issue has been fixed in the latest beta release, 4.0.4-beta1. Please test it & let us know if this is resolved for you.

You can install the beta SDK with the below command, npm i @cometchat/[email protected]

Regards,

Afroz Khan CometChat