question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

realFetch.call is not a function

See original GitHub issue
TypeError: 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alexvettercommented, Jun 2, 2018

I should have been more clear. Yes, it works! Thanks again. Looking forward to a official release.

1reaction
lquixadacommented, Jun 2, 2018

no problem! btw, can you do npm install lquixada/cross-fetch in your project and make sure the patch worked?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found