Skip to content

Ошибка в консоли при подключении API #5

@vicabelotelova

Description

@vicabelotelova

В консоли выдает ошибку
image

в polifills.ts пути прописаны, в самом файле cryptopro.ts пути не меняла
Файлы имеются и лежат вроде в той же иерархии
image
Мой компонент:

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));
  }
}


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions