-1

please see this image 1image 2 unable to create build of my angular 8 project throwing Cannot find name FilestackTransform

onUploadSuccess(res: object) {
console.log('###uploadSuccess', res);
this.tempData = res;
this.tempUrl = this.tempData.filesUploaded[0].url;
const client = filestack.init(this.apikey); // initialize Filestack Client with your API key
const tr = new FilestackTransform(); // initialize Transformations UI
tr.setConfigKey('output.blob', true); // set Transformations UI to return blob
tr.open(this.tempUrl).then(res => {
  client.upload(res).then((uploadRes) => { // upload result of the transformation
    this.tempTranssformUrl = JSON.stringify(uploadRes.url, null, 2).split('"');
    (<HTMLImageElement>document.querySelector("#result")).src = this.tempTranssformUrl[1];
    this.isPicker = false;
  })
});

}

Yashwant
  • 1
  • 4

1 Answers1

0

Inside a class, TypeScript doesn't permit the declaration of class members with var let const

declare FilestackTransform:any; const tr = this.FilestackTransform();

Yashwant
  • 1
  • 4