cometchat / cometchat-sample-app-react-native

Voice & Video Calling and Text Chat App for React Native
https://www.cometchat.com
Other
332 stars 166 forks source link

Expo: Cannot read property 'BaseInputElement' of undefined #93

Closed jayan2019 closed 5 months ago

jayan2019 commented 7 months ago

Describe the problem

Getting error as TypeError: Cannot read property 'BaseInputElement' of undefined, js engine: hermes when i try to implement Cometchat UIKit for React Native V4 with using expo

What was the expected behavior?

App need to run and working

Reproduction

Create new expo project: yarn create expo-app AwesomeProject Install dependencies: yarn add @cometchat/chat-uikit-react-native @cometchat/chat-sdk-react-native@4.0.1 @react-native-async-storage/async-storage@1.17.10 @react-native-community/clipboard@1.5.1 Include init code: CometChatUIKit.init(uikitSettings) Run App: npx expo run:ios

Error: TypeError: Cannot read property 'BaseInputElement' of undefined, js engine: hermes

Simulator Screenshot - iPhone 15 Pro Max - 2024-03-21 at 10 41 13

Environment

"@cometchat/chat-sdk-react-native": "^4.0.6", "@cometchat/chat-uikit-react-native": "^4.2.2", "@react-native-async-storage/async-storage": "^1.23.1", "@react-native-community/clipboard": "^1.5.1", "@react-native-community/datetimepicker": "^7.6.3", "expo": "~50.0.14", "react": "18.2.0", "react-native": "0.73.6"

jayan2019 commented 7 months ago

Full error log:

iOS Bundled 4543ms (node_modules/expo/AppEntry.js) ERROR TypeError: Cannot read property 'BaseInputElement' of undefined, js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

Screenshot 2024-03-21 at 11 07 08

cometchat-helpcenter-bot commented 7 months ago

Provesha (CometChat Team) replied:

Hi Jayaraj,

Thank you for sharing these details. I have forwarded the information to our implementation team and they will review this and reach out to you shortly with more help.

Provesha CometChat

cometchat-helpcenter-bot commented 7 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi Jayaraj,

Thank you for reporting this issue, we are able to reproduce the issue on our end. We have sent the information to our product engineering team for more investigation. We will be in touch when we have more information.

Regards,

Prathmesh Parteki CometChat

jayan2019 commented 6 months ago

Hi Prathmesh,

Thank you for your confirmation!

Just as an update, I tried with "@cometchat/chat-uikit-react-native": "^4.3.3" and I can see the same issue with this new version also.

Thanks in advance!

cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

Thank you for reporting the issue. Your issue has been forwarded to our product engineering team who are currently investigating it thoroughly. We truly appreciate your patience during this process.

Please rest assured, we are committed to providing a resolution as soon as possible. As soon as we have any further updates or information, we will get back to you.

Regards,

Prathmesh Parteki CometChat

jayan2019 commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

Thank you for reporting the issue. Your issue has been forwarded to our product engineering team who are currently investigating it thoroughly. We truly appreciate your patience during this process.

Please rest assured, we are committed to providing a resolution as soon as possible. As soon as we have any further updates or information, we will get back to you.

Regards,

Prathmesh Parteki CometChat

I really appreciate, Thank you so much!

abanobmikaeel commented 6 months ago

Also affected by this issue, and experiencing it on the latest version.

Please let us know how to proceed!

cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

Our team is currently working diligently on the issue you've reported. We assure you that this is our top priority and we're exerting every effort to resolve this at the soonest possible time.

We understand the importance and urgency of your concern, and we ask for your patience as we work on finding the best solution for you. As soon as we have more information or an update, we will promptly get back to you.

In the meantime, if you have any other questions or require further assistance, please feel free to reach out.

Thank you for your patience and understanding.

Regards,

Prathmesh Parteki CometChat

abanobmikaeel commented 6 months ago

Do you have recommendations for implementing this functionality in an Expo App without this UI Kit? Should we use CometChat Pro React Native SDK? That’s the only that seems to be working for us currently.

cometchat-helpcenter-bot commented 6 months ago

Prathmesh Parteki (CometChat Team) replied:

Hi,

As previously discussed, your issue has been escalated to our product engineering team. They are diligently working to resolve the matter as quickly as possible. We appreciate your understanding in this matter.

As soon as we receive an update, we will immediately communicate this with you to keep you informed of the progress.

Regards,

Prathmesh Parteki CometChat

cometchat-helpcenter-bot commented 5 months ago

Afroz Khan (CometChat Team) replied:

Hi,

I hope this message finds you well.

I wanted to provide you with an urgent status update regarding the issue you reported. After careful consideration of its impact on your operations, we have escalated it to P0 priority within our team.

We are fully committed to resolving the issue with the utmost urgency.

To ensure a thorough investigation and a comprehensive solution, we kindly request your patience and understanding.

We understand the importance of this matter to you and your business, and we are dedicated to delivering a resolution that meets your expectations. We will keep you updated on our progress throughout the process.

If you have any questions, concerns, or additional information that you believe may assist us in resolving the issue more efficiently, please do not hesitate to reach out to us.

Thank you for your understanding and cooperation.

Regards,

Afroz Khan CometChat

cometchat-helpcenter-bot commented 5 months ago

Afroz Khan (CometChat Team) replied:

Hello,

I wanted to provide you with an update. After a couple of days of intensive debugging, we have identified the root cause of the issue with our React Native UI Kit not working with Expo. We have made the necessary changes in our UI Kit to address this issue, which is currently in the internal testing phase. Please rest assured that we will keep you informed about the status of the bug fix.

Thank you for your patience.

Best Regards.

Afroz Khan CometChat

cometchat-helpcenter-bot commented 5 months ago

Aditya (CometChat Team) replied:

Hi there,

We're pleased to inform you that we have released a fix for the issue with Expo compatibility in our React Native UI Kit. Please upgrade to version 4.3.9 and let us know if everything works as expected.

We appreciate your patience and look forward to your feedback.

Thanks

Aditya Gokula CometChat

jayan2019 commented 5 months ago

I can confirm that UI kit is working fine now. Thanks a lot for the whole team's effort. We appreciate! :tada: