CyberSource / cybersource-rest-client-node

NodeJS client library for the CyberSource REST API
Other
43 stars 46 forks source link

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

Open Gopinath7007 opened 9 months ago

Gopinath7007 commented 9 months ago

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

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 `