Chat Ai Widget compatibility with React 17?

Despite having React 17 listed as a supported peer dependency (see package.json), the Chat Ai Widget doesn’t work in a React 17 app (we are getting a useSyncExternalStore is not a function error).

We tried integrating the component in multiple React apps (all using React 17) based on a variety of frameworks:

  • CRA + craco
  • Vite
  • Next.js

In all cases we were unable to get the component to work due to React version incompatibilities.

This seems to be due to the library depending on a recent version of react-query which only supports React 18

NOTE: I also created a ticket in GH about this problem

Hello. As mentioned in the GitHub issue response, this issue has been resolved in version 1.5.10.