CyberSource / CyberSource/cybersource-rest-client-node
Unable to Upgrade the version to ^0.0.51 KeyGenerationApi is not a constructor?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 49
- Forks
- 50
- Avg merge
- 18m
- Merged PRs (30d)
- 2
Description
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
`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the exported KeyGenerationApi and GeneratePublicKeyRequest entry points between versions 0.0.40 and 0.0.51, focusing on the reported constructor error. Confirm the supported usage or replacement for KeyGenerationApi, then document the breaking change and verify that the public-key generation example works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100