Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gopinath7007 opened this issue Feb 8, 2024 · 0 comments

Comments

@Gopinath7007
Copy link

Gopinath7007 commented Feb 8, 2024

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
`

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

No branches or pull requests

1 participant