Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

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

Open
mepc36 opened this issue Sep 26, 2023 · 0 comments
Open

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

mepc36 opened this issue Sep 26, 2023 · 0 comments

Comments

@mepc36
Copy link

mepc36 commented Sep 26, 2023

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)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant