Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant