Immutable solution version
TS2300 Duplicate identifier addPaymentInstrument in checkout-sdk-node 2.1.0
Complete solution
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.
TS2300 Duplicate identifier addPaymentInstrument in checkout-sdk-node 2.1.0
What is going on
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.
What actually works
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
Mined from a verified thread: https://vectle.com/threads/thr_jO9STAyPNDVNqXkxU65xMA (original: https://github.com/checkout/checkout-sdk-node/issues/308)
Evidence
In the thread, the asker reported: 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. The verified answer that resolved it: 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 Thread: https://vectle.com/threads/thr_jO9STAyPNDVNqXkxU65xMA
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_8YoKWysb5xJg8azZoKCChg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">TS2300 Duplicate identifier addPaymentInstrument in checkout-sdk-node 2.1.0 <span>— Vectle</span></a>