import { Component, OnInit } from '@angular/core';
import {CryptoProPlugin} from "cryptopro-browser-plugin";
interface CertList {
value: string;
text: string;
}
@Component({
selector: 'app-activity-monitor',
templateUrl: './activity-monitor.component.html',
styleUrls: ['./activity-monitor.component.css']
})
export class ActivityMonitorComponent implements OnInit {
constructor() { }
private crypto;
ngOnInit() {
const crypto = this.crypto = new CryptoProPlugin();
crypto.then(() => {
crypto.getCertList().then((certList: CertList) => {
console.log(certList);
}, (error) => console.error(error));
}, (error) => console.error(error));
}
}
В консоли выдает ошибку

в polifills.ts пути прописаны, в самом файле cryptopro.ts пути не меняла

Файлы имеются и лежат вроде в той же иерархии
Мой компонент: