You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe we could add a section to the README and link to it from the error, so we can provide a more thorough explanation and most importantly we can update whenever needed.
I'd say the availability of fetch is independent of the Node version. fetch is still experimental and it can be disabled with --no-experiemental-fetch. Also Node is not the only place where Octokit is run, I'm not sure if e.g. Electron or React Native have a global fetch method.
oscard0m
changed the title
Be more explicit that this package (and other Octokit packages) does not support Node 14/16
Throw a helpful error when fetch is not set
Jul 15, 2023
oscard0m
changed the title
Throw a helpful error when fetch is not set
Throw a helpful error when fetch is not set
Jul 15, 2023
octokit.js
README.md
Proxy Servers (Node.js only) #2499README.md
#2500request.js
request.js#616Maybe we could add a section to the README and link to it from the error, so we can provide a more thorough explanation and most importantly we can update whenever needed.
I'd say the availability of
fetch
is independent of the Node version.fetch
is still experimental and it can be disabled with--no-experiemental-fetch
. AlsoNode
is not the only place where Octokit is run, I'm not sure if e.g. Electron or React Native have a globalfetch
method.I'd do something like this:
Originally posted by @gr2m in #2486 (comment)
The text was updated successfully, but these errors were encountered: