client-sdk-react not compatible with React 19
# support
j
Hey, I already opened a GitHub issue but I wanted to point out that the
client-sdk-react
is not compatible with React 19. It would be great to fix that 🎉
Copy code
TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
    at eval (webpack-internal:///(app-pages-browser)/./node_modules/@vapi-ai/client-sdk-react/dist/index.js:214:16)
    at Fi (webpack-internal:///(app-pages-browser)/./node_modules/@vapi-ai/client-sdk-react/dist/index.js:648:4)
    at Li (webpack-internal:///(app-pages-browser)/./node_modules/@vapi-ai/client-sdk-react/dist/index.js:652:51)
    at eval (webpack-internal:///(app-pages-browser)/./node_modules/@vapi-ai/client-sdk-react/dist/index.js:654:9)
    at (app-pages-browser)/./node_modules/@vapi-ai/client-sdk-react/dist/index.js (http://localhost:3001/_next/static/chunks/app/layout.js:180:1)
    at options.factory (http://localhost:3001/_next/static/chunks/webpack.js:712:31)
    at __webpack_require__ (http://localhost:3001/_next/static/chunks/webpack.js:37:33)
    at fn (http://localhost:3001/_next/static/chunks/webpack.js:369:21)
    at eval (webpack-internal:///(app-pages-browser)/./components/vapi-widget.tsx:8:83)
    at (app-pages-browser)/./components/vapi-widget.tsx (http://localhost:3001/_next/static/chunks/app/layout.js:137:1)
    at options.factory (http://localhost:3001/_next/static/chunks/webpack.js:712:31)
    at __webpack_require__ (http://localhost:3001/_next/static/chunks/webpack.js:37:33)
    at fn (http://localhost:3001/_next/static/chunks/webpack.js:369:21)
c
Hi jP\_, For compatibility issues between
client-sdk-react
and React 19, please ensure you are using the latest version of the SDK by checking for updates on [our GitHub repository](https://github.com/VapiAI/client-sdk-react). If the problem persists, you can let me know. This might find our [API resources](https://docs.vapi.ai/resources) helpful..
j
Hey, I do. It's because the SDK uses React 18 .. There are some breaking changes. I already opened a PR, it would be great to have a release with React 19
c
Hi jP\_, Currently, our
client-sdk-react
is not compatible with React 19. For more details on our React Native SDK and updates, please refer to the [Vapi Ecosystem documentation](https://docs.vapi.ai/resources). Let me know if there's anything else you need help with.
4 Views