voiceflow/react-chat

PSA: This package works best with Next.js version >= 13

Opened this issue · 0 comments

mepc36 commented

Tried to get it to work forever with Next.js v12, but no luck. Some of my struggles were documented here:

#71

Even after importing the Voiceflow component dynamically, the kept throwing a useState is undefined error at this line:

https://github.com/voiceflow/demo-react-chat/blob/main/src/context.tsx#L25

I'd then be shown this Invalid Hook Call error, which was a red herring:

https://legacy.reactjs.org/warnings/invalid-hook-call-warning.html

Upgrading to Next.js fixed most of my problems (if not all of them: #76)