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
Node: v13.0.1
OS: Windows (Version 10.0.18363.778)
Package: @giphy\js-fetch-api (Version: 1.5.9)
To Reproduce
Have a basic node.js project set up
Run npm i @giphy\js-fetch-api
Run project
Code
const{ GiphyFetch }=require("@giphy/js-fetch-api");constgiphy=newGiphyFetch("api key");//...const{ data }=giphy.random();console.log(data);
Error
(node:39764) UnhandledPromiseRejectionWarning: Error: fetch is not defined
at new FetchError (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\fetch-error.js:21:28)
at Object.<anonymous> (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:90:38)
at step (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:33:23)
at Object.next (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:14:53)
at D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:8:71
at new Promise (<anonymous>)
at __awaiter (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:4:12)
at makeRequest (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:52:48)
at Object.request [as default] (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\request.js:101:27)
at GiphyFetch.random (D:\Developement\mod-and-music\node_modules\@giphy\js-fetch-api\dist\api.js:104:33)
(node:39764) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:39764) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The text was updated successfully, but these errors were encountered:
Env
Node:
v13.0.1
OS:
Windows (Version 10.0.18363.778)
Package:
@giphy\js-fetch-api (Version: 1.5.9)
To Reproduce
npm i @giphy\js-fetch-api
Code
Error
The text was updated successfully, but these errors were encountered: