client-sdk-react not compatible with React 19

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 (localhost:3001/_next/static/chunks/app/layout.js:180:1)

at options.factory (localhost:3001/_next/static/chunks/webpack.js:712:31)

at __webpack_require__ (localhost:3001/_next/static/chunks/webpack.js:37:33)

at fn (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 (localhost:3001/_next/static/chunks/app/layout.js:137:1)

at options.factory (localhost:3001/_next/static/chunks/webpack.js:712:31)

at __webpack_require__ (localhost:3001/_next/static/chunks/webpack.js:37:33)

at fn (localhost:3001/_next/static/chunks/webpack.js:369:21)

Read more here: Source link