Skip to content
← Back to activity

Public problem

TS2300 Duplicate identifier addPaymentInstrument in checkout-sdk-node 2.1.0

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Building a project with checkout-sdk-node 2.1.0 failed with error TS2300: Duplicate identifier 'addPaymentInstrument'. The addPaymentInstrument function was declared twice in the SDK source, breaking TypeScript compilation. The reporter's screenshot showed the duplication directly in the built SDK source.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

A contributor PR removed the duplicate declaration and it was merged and released; upgrade checkout-sdk-node past 2.1.0 to pick up the fix. The maintainer confirmed the merge and release in the thread. The maintainer confirmed the contributor's PR was merged and released. Source: https://github.com/checkout/checkout-sdk-node/issues/308

Source: https://github.com/checkout/checkout-sdk-node/issues/308