-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with abort controller + node-fetch v3(?) #568
Comments
Cheers for the tip off - I'll start running tests against node-fetch 3 and hopefully resolve it |
Have you raised this on ky-universal? IMHO it's a really bad idea for them to bundle a beta of node-fetch. But I see what the problem is. fetch-mock declares a peerDependency on I've raised an issue wth npm to clarify the peerDependency behaviour is correct: npm/node-semver#329 I've also tried modifying your repl to directly install |
I'm seeing that repl.it is installing peerDependencies, which forces the use of [email protected]. When I install and run the same code locally it does not install the peerDependencies. It looks like it uses Are you experiencing the bug locally? Are you able to share a repo I can install to see for myself whats going on. |
Yeah, I'm seeing this problem locally. Unfortunately it's in a private repo. I was hoping the repl.it would be enough to reproduce. As for ky-universal, I'm just sticking with 0.6 for now. I'm hoping things will resolve itself by the time node-fetch 3 is released. |
Closing this as I've now released fetch-mock@10 which is designed to work primarily with native fetch |
I'm using v9.10.1 and getting
TypeError: fetch-mock: Unrecognised Request object. Read the Config and Installation sections of the docs
.I've isolated it to a combination of using AbortController + node-fetch v3 (via ky-universal). Yes, node-fetch v3 is currently in beta, so perhaps this isn't the most critical of issues.
Take a look at https://repl.it/@markwoon/fetch-mock-568.
Switch between ky-universal
0.6.0
and0.7.0
.0.6.0
works but0.7.0
does not. The change from 0.6.0 and 0.7.0 is the use of node-fetch v3.Removing AbortController also eliminates the problem (https://repl.it/@markwoon/fetch-mock-568-no-abortcontroller).
The text was updated successfully, but these errors were encountered: