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

ReferenceError: fetch is not defined #151

Closed
samyakkkk opened this issue Dec 30, 2023 · 1 comment
Closed

ReferenceError: fetch is not defined #151

samyakkkk opened this issue Dec 30, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@samyakkkk
Copy link
Contributor

What version are you using?

0.2.0

What happened?

The chat and other requests doesn't work for vscode versions < 1.82

Steps to reproduce

1. Go to Chat
2. Send a message
3. Error processing the message.

Supporting info to reproduce

No response

Relevant log output

No response

@samyakkkk samyakkkk added the bug Something isn't working label Dec 30, 2023
@samyakkkk
Copy link
Contributor Author

The reason this is happening because we use https://www.npmjs.com/package/@google/generative-ai which uses fetch.

To use fetch, nodeJS v18+ is required. Extensions use inbuilt nodeJS version of electron framework that VSCode is built on.

VSCode moved to electron 25 which uses nodeJS 18 in it's August 1.82 release https://code.visualstudio.com/updates/v1_82#_electron-25-update which hence becomes the minimum requirement.

VSCode version 1.82 should become a minimum requirement for installing FlutterGPT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant