Файл ошибки стека файлов Не удается найти имя 'FilestackTransform'.ts (2304) в angular 8 - PullRequest
0 голосов
/ 12 марта 2020

см. Это изображение 1 изображение 2 невозможно создать сборку для моего angular 8 выброса проекта Не удается найти имя 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;
  })
});

}

1 Ответ

0 голосов
/ 12 марта 2020

Внутри класса TypeScript не разрешает объявление членов класса с помощью var let const

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

...