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

340
Views
ERROR ReferenceError: XMLHttpRequest no está definido en SSR angular 11

Estoy trabajando en SSR en Angular versión 11. Cuando llamo al archivo cdn json en ese momento, aparece el error de tiempo de ejecución ERROR ReferenceError: XMLHttpRequest is not defined y no muestra datos en SSR.

por favor ayuda que puedo hacer

abc.componente.ts

 import { HttpClient } from '@angular/common/http'; import { Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output, PLATFORM_ID } from '@angular/core'; cardInfo: any; constructor( private http: HttpClient, @Inject(LOCALE_ID) public languageId: string, @Inject(PLATFORM_ID) private platformId, ) {} ngOnInit(): void { this.getJsonData().subscribe((res) => { this.cardInfo = res; }); } getJsonData() { return this.http.get( `https://cdn.researcher.life/rlife/json/advisory-board-members/advisory-board-members-${this.languageId}-v4.json`, ); }
about 4 years ago · Juan Pablo Isaza
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!