realFetch.call is not a function
See original GitHub issueTypeError: realFetch.call is not a function
at fetch (/usr/lib/leaguegamer/webserver/build/webpack:/datalibrary/node_modules/cross-fetch/dist/node-ponyfill.js:9:1)
When I inspect the import using the developer tools, the realFetch is an object, and not a function. On this object, there is the fetch function.
I’m unsure if this is a problem with the library or some kind of weird artifact that I have with the build. It would seem to be the latter, but I can’t track it down. Any idea why require(‘node-fetch’) is returning an object?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Node.js - realFetch.call is not a function · Issue #194 - GitHub
Trying to use this in a node.js worker and seeing error realFetch.call is not a function (node:41803) UnhandledPromiseRejectionWarning: TypeError: ...
Read more >How to use the node-fetch.call function in node-fetch | Snyk
To help you get started, we've selected a few node-fetch.call examples, ... { url = 'https:' + url } return realFetch.call(this, url, options)...
Read more >Isomorphic fetch not working for external requests?
In order to extract actual data, You might want to call one of the following methods: response.json() // if the response contains json...
Read more >How to use graphql with AWS Lambda - Questions
Hi, I want to use graphql with aws lambda function in node platform. How I can do this? any ... TypeError: realFetch.call is...
Read more >Can't get node-fetch to work (my first Azure function)
@JimBurke-5577 Looks like the module is not correctly installed. Please make sure that you have installed the module in D:\home\site\wwwroot ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I should have been more clear. Yes, it works! Thanks again. Looking forward to a official release.
no problem! btw, can you do
npm install lquixada/cross-fetch
in your project and make sure the patch worked?