Skip to content

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

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


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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