Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

TypeScript error in Header authentication tutorial #1273

Open
dandv opened this issue May 10, 2020 · 1 comment
Open

TypeScript error in Header authentication tutorial #1273

dandv opened this issue May 10, 2020 · 1 comment

Comments

@dandv
Copy link

dandv commented May 10, 2020

Expected Behavior

No TypeScript errors in the code from https://www.apollographql.com/docs/react/v3.0-beta/networking/authentication/#header.

Actual Behavior

TypeScript error for the link: authLink.concat(httpLink) line:

Property 'toKey' is missing in type 'import(".../node_modules/@apollo/client/link/core/types").Operation' but required in type 'import(".../node_modules/apollo-link/lib/types").Operation'.

A simple reproduction

The official Header authentication sample.

@joprice
Copy link

joprice commented May 11, 2020

Switching to "@apollo/link-persisted-queries": "1.0.0-beta.0" worked for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants