-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Typescript error with RequestInfo #11736
Comments
Hey @UnknownJeff 👋 Sorry to hear you're having issues! I'm willing to bet its related to #11449 which removed dependence on the |
Oh wait, I see you're manually typing the - fetch: (uri: RequestInfo, options: RequestInit) => {
+ fetch: (uri, options) => { Doing so should then just use the types that |
That along with a minor tweak worked perfectly. Thanks for the quick assist. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
We are running into a type script error after upgrading to Apollo/client 3.8.9 and we are not quite sure why.
The stack-trace is as follows:
and the code snippet that produces the error is as follow:
I checked the change logs for this version and I did not notice anything obvious that changed for the types so any help is greatly appreciated.
Other possible useful version numbers:
[email protected]
[email protected]
types/[email protected]
Link to Reproduction
Not possible in this case
Reproduction Steps
Fails during build after updating package.json to 3.8.9. Nothing else as changed with the code. Downgrading back to Apollo/[email protected] results in a successful build. 3.8.9 and above causes it to fail with the error above.
@apollo/client
version3.8.9
The text was updated successfully, but these errors were encountered: