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

Fetch is not passed to useChat hook #2155

Closed
QQCif opened this issue Jul 1, 2024 · 0 comments · Fixed by #2156
Closed

Fetch is not passed to useChat hook #2155

QQCif opened this issue Jul 1, 2024 · 0 comments · Fixed by #2156
Labels

Comments

@QQCif
Copy link

QQCif commented Jul 1, 2024

Description

Hello. I tried to use this package inside wechat miniapp via taro. Since there's no fetch inside wechat's runtime, I tried to use a fetch polyfill and pass it to useChat hook. However it's giving me error like fetch2 is not a function. I have checked the source code, fetch seems in the typing but not in the actual code?

export function useChat({

Code example

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants