VapiAI/client-sdk-react

Not Compatible with React 19

Closed this issue · 3 comments

Hey,

the client-side-react uses React 18 currently and causes dependency problems with React 19. This is a widely known problem. Would appreciate a future release that's using the latest version of React.

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)

Opened a PR -> #12

Same problem here, would really appreciate the upgrade to React 19!

Fixed by #13