Open Binary-Bytes opened 5 months ago
Sounds similar to https://github.com/google-gemini/generative-ai-js/issues/173. Can you answer these questions?
This error will occur if there's no
fetch
available in the global namespace. If you're using Node 20, this shouldn't be a problem. Are you able to run a simple node script in that same environment that just callsfetch()
(on any valid url)? Are you using any kind of framework or library that polyfills or overwritesfetch
?
Description of the bug:
I am building an extension for Raycast, while using the Gemini API, however getting the following error when I am just following the Quickstart guide. I saw the previous same issues but my node version is already more than 18.
DEVICE MacOS Sonoma Node v20.14.0 npm 10.7.0