Skip to content

Unable to Upgrade the version to ^0.0.51 KeyGenerationApi is not a constructor? #131

@Gopinath7007

Description

@Gopinath7007

When we try to upgrade the version to 0.0.51 from 0.0.40 , getting the following error,

TypeError: cybersource_rest_client__WEBPACK_IMPORTED_MODULE_0__.KeyGenerationApi is not a constructor"

The problem we are facing is

  • There is no documentation for the breaking changes ,
  • Not getting any replacement error while using the old methods
  • No enough community support or documentation available

What we tried

import { ApiClient, KeyGenerationApi, GeneratePublicKeyRequest } from 'cybersource-rest-client';
const config = configuration(merchantDetails);
const apiClient = new ApiClient();
const instance = await new KeyGenerationApi(config, apiClient);
const request = await new GeneratePublicKeyRequest();

Please help us to solve this issue
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions