-
Notifications
You must be signed in to change notification settings - Fork 33
ApolloLink is missing onError and setOnError properties #51
Comments
I've found that the current @apollo/client package has createHttpLink in When trying to use this one instead, The onError/setOnError error persists and I'm getting this additional error: I suppose it's because you're importing from apollo-link in https://github.com/apollographql/apollo-link-persisted-queries/blob/master/src/index.ts#L1 instead of @apollo/client |
@hwillson do you know how I can run your branch With My package.json gets updated to: "dependencies": {
"@apollo/client": "^3.0.0-beta.44",
"@apollo/link-persisted-queries": "github:apollographql/apollo-link-persisted-queries#ac3-updates", But since the code is written in typescript and there's no setup triggered to compile to js on npm install, I'm ending with no code available in node_modules $ ls node_modules/@apollo/link-persisted-queries
appveyor.yml codecov.yml dangerfile.ts package.json renovate.json scripts
CHANGELOG.md CONTRIBUTING.md LICENSE README.md rollup.config.js Is there a best practice to follow here? EDIT: for the time being, I've just copied the |
Check your import import { HttpLink, from } from '@apollo/client';
import { createPersistedQueryLink } from "@apollo/link-persisted-queries";
const link = from([
createPersistedQueryLink(),
new HttpLink({
uri: '',
})
]) |
@rabinage can this be added to the usage docs here: https://github.com/apollographql/apollo-link-persisted-queries ? It is currently Looks like this page needs to be updated as well: https://www.apollographql.com/docs/link/links/http/ |
Currently setting up a new project with:
When setting up APQ, I'm getting this typescript error on missing onError and setOnError properties:
I'm not sure if the issue is on my side (bad configuration) or on the library needing some update to work with apollo client 3.
How do you suggest I resolve this issue?
The text was updated successfully, but these errors were encountered: