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

Error when initializing Bard #33

Closed
OsmonKida opened this issue Jul 16, 2023 · 3 comments
Closed

Error when initializing Bard #33

OsmonKida opened this issue Jul 16, 2023 · 3 comments

Comments

@OsmonKida
Copy link

Hey, I am getting a ReferenceError: fetch is not defined,
when trying to initialize Bard with Bard.init("KEY"), I am calling the init function on a express js app route, am I doing a mistake?

@EvanZhouDev
Copy link
Owner

EvanZhouDev commented Jul 16, 2023

Yeah, fetch is an experimental feature in Node.js (meaning it doesn't exist in some environments with it disabled). With that said, please see https://bard-ai-docs.vercel.app/fetch

@OsmonKida
Copy link
Author

Thank you, closing this issue then!

@ThatXliner
Copy link
Collaborator

@EvanZhouDev Another FAQ addition. Maybe you should start making a README issue template? You may modify mine (at ThatXliner/pyt2)

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

3 participants