Tried to get it to work forever with Next.js v12, but no luck. Some of my struggles were documented here: https://github.com/voiceflow/react-chat/issues/71 Even after importing the Voiceflow component dynamically, the <RuntimeProvider/> 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: https://github.com/voiceflow/react-chat/issues/76)
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 undefinederror at this line:I'd then be shown this
Invalid Hook Callerror, 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)