ReferenceError: fetch is not defined
samyakkkk opened this issue · comments
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
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.