Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Se encontró una subselección en la consulta, pero la tienda no tiene una referencia de objeto. angular

Recibo este error cuando intento hacer una consulta gql:

ingrese la descripción de la imagen aquí

He intentado cambiar la versión angular, pero necesito implementar gql en esta versión. sin actualizar :/

paquete.json

 { "dependencies": { "@angular/cdk": "^5.2.5", "@angular/common": "^5.2.10", "@angular/compiler": "^5.2.10", "@angular/core": "^5.2.10", ... "rxjs": "^5.5.9", "zone.js": "^0.8.26", "apollo-angular": "^1.0.1", "apollo-angular-link-http": "^1.0.2-beta.0", "apollo-cache-inmemory": "^1.1.5", "apollo-client": "^2.2.0", "graphql": "^0.12.3", "graphql-tag": "^2.6.1" }, "devDependencies": { "@angular/cli": "^1.7.4", "@angular/compiler-cli": "^5.2.10", "@types/node": "^9.6.6", "ts-node": "^4.1.0", "tslint": "^5.9.1", "typescript": "^2.8.3" } }

aplicación.módulo.ts

 ... import { ApolloModule, Apollo } from 'apollo-angular'; import { HttpLinkModule, HttpLink } from 'apollo-angular-link-http'; import { InMemoryCache } from 'apollo-cache-inmemory'; @NgModule({ imports: [ ... HttpClientModule, ApolloModule, HttpLinkModule ], .. }) export class AppModule { constructor( apollo: Apollo, httpLink: HttpLink ) { apollo.create({ link: httpLink.create({ uri: 'https://graphqlzero.almansi.me/api'}), cache: new InMemoryCache() }); } }

¿Como puedo resolver esto?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resolví esto actualizando apollo-cache-inmemory de 1.1.5 a 1.3.0

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!