Hello All,
I am trying to consume/fetch the data from external web api into PCF component. I am getting below error
"https.get is not a function".

private callHttps(url: string😞 Promise<any> {
const https = require('https');
return new Promise<string>(resolve => {
https.get(url, (res: any) => {
res.setEncoding("utf8");
let body = "";
res.on("data", (data: any) => {
body += data;
});
res.on("end", () => {
let respBody: any = JSON.parse(body);
resolve(respBody);
});
});
});
}