-
Notifications
You must be signed in to change notification settings - Fork 324
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
TypeError: mentionUserString.replaceAll is not a function. After update to 5.18.1 #2253
Comments
hmm could be related to this PR - https://github.com/GetStream/stream-chat-react-native/pull/2229/files But curious why won't replaceAll be available. |
@hotaryuzaki Could you try adding some |
oh you are right, that is from 5.18.0 i don't knows why replaceAll is not available, we are using node 18. |
yes it would get the same error. |
Yeah I am not sure. As far as I understand, all the js engines support this function. Do you see this error when you are debugging with chrome debugger? Or do you see it even when you disable debugger? |
I am open to investigating more if we receive more complains about this. But here I would just recommend adding some polyfill to get unblocked - https://vanillajstoolkit.com/polyfills/stringreplaceall/ It could be some older version of js engine configured on native level, on your app (just a guess) |
i'm not using any debugger tools, i just start it in CLI and open the debug app in the real phone. |
I am also facing this issue after upgrading but I can't downgrade as I need 5.1.8 to fix this issue: #2235 |
@rohanvasishth what was the version before upgrade? |
Issue
after update to 5.18.1 there is an error when open the chat home (channel list)
then we downgraded to 5.16.0 and the issue was gone.
Steps to reproduce
update from 5.16.0 to 5.18.0
Environment
Click To Expand
package.json
:react-native info
output:stream-chat-react-native
version you're using that has this issue:The text was updated successfully, but these errors were encountered: