Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone and import new repo got error module parse #60

Closed
mrtk0y opened this issue Jun 7, 2021 · 4 comments
Closed

Clone and import new repo got error module parse #60

mrtk0y opened this issue Jun 7, 2021 · 4 comments

Comments

@mrtk0y
Copy link

mrtk0y commented Jun 7, 2021

Describe the problem

Clone cometchat-pro-react-ui-kit repo
and import CometChatUI got error
image

What was the expected behavior?

Import and use as normal

Reproduction

Environment

  • @cometchat-pro/chat": "2.1.4"
  • "next": "^10.0.0",
  • "react": "^17.0.1",
@mrtk0y
Copy link
Author

mrtk0y commented Jun 7, 2021

by comment all the place import audio, I manage to make it run
image

@priyadarshininadar
Copy link
Contributor

Hi @mrtk0y ,
you can toggle off sound for incoming/outgoing messages by using this method: UIKitSettings.setEnableSoundForMessages(false). Please refer to this link for more such customization: https://prodocs.cometchat.com/docs/react-ui-kit-customize

@mrtk0y
Copy link
Author

mrtk0y commented Jun 7, 2021

Hi @mrtk0y ,
you can toggle off sound for incoming/outgoing messages by using this method: UIKitSettings.setEnableSoundForMessages(false). Please refer to this link for more such customization: https://prodocs.cometchat.com/docs/react-ui-kit-customize

Ah yes, I read the docs, but I don't know where to add "UIKitSettings.setEnableSoundForMessages"
I'm not really familiar with class style
I tried
static setEnableSoundForMessages = false
in UIKitSettings file but no use

@priyadarshininadar
Copy link
Contributor

You can use the method before importing any of the UI Kit components.
If you are trying to integrate the UI Kit with a Next.js project, please make sure you follow this documentation: Next js integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants