tawk-messenger-react icon indicating copy to clipboard operation
tawk-messenger-react copied to clipboard

incompatible with react 18

Open md-redwan-hossain opened this issue 3 years ago • 9 comments

I tried to install tawk react package but it throws a error saying incompatible with react dom 18. See the atached error log and screenshot. https://termbin.com/gb1b react_bug

md-redwan-hossain avatar May 07 '22 17:05 md-redwan-hossain

Hi @redwan-hossain we are aware on the error and I already submit a pull request on the team, this will be on under review and test. Pull request #11

Thank you

jaoaustero avatar May 10 '22 11:05 jaoaustero

Hi @redwan-hossain We already now supporting version 18 of react, we have new updates on the plugin that will resolve the issue

https://www.npmjs.com/package/@tawk.to/tawk-messenger-react

jaoaustero avatar May 30 '22 02:05 jaoaustero

### I AM USING TYPESCRIPT.

@jaoaustero - I am trying to use tawk in [email protected], Installation is success but i am getting type error when i try to import with code import TawkMessengerReact from '@tawk.to/tawk-messenger-react';

image

I am also trying to install with npm package npm i --save-dev @types/tawk.to__tawk-messenger-react but getting below error:

image

soheb-mpc91 avatar May 31 '22 08:05 soheb-mpc91

Hi @soheb-mpc91 currently we don't yet support typescript but this was the next thing we will update

jaoaustero avatar Jun 01 '22 13:06 jaoaustero

@jaoaustero - Any update on https://github.com/tawk/tawk-messenger-react/issues/10#issuecomment-1141854908 ?

soheb-mpc91 avatar Jun 26 '22 16:06 soheb-mpc91

Have you considered supporting react 17 in the latest version of the plugin? Now you have set a 18.1.0 as the minimum version of react and react-dom in peerDependencies. This throws a warning if you try to use the plugin with react 17. And do you really need the peer dependency to react-scripts?

jleknes avatar Aug 22 '22 11:08 jleknes

@jleknes You can still use this plugin in react 17 by using the lower version 1.0.0

jaoaustero avatar Aug 23 '22 06:08 jaoaustero

@jaoaustero: Yes, but version 1.0.0 has lots of outdated dependencies with critical vulnerabilities.

Is version 2.0.1 really incompatible with react 17 or have you just set the peerDependency too aggressively?

jleknes avatar Aug 24 '22 12:08 jleknes

Hi @soheb-mpc91 currently we don't yet support typescript but this was the next thing we will update

Just discovered this. This is quite unfortunate for us.

smith558 avatar Jun 25 '24 09:06 smith558