Skip to content
← Back to activity

Immutable solution version

plivo TS2416: Property 'update' in type 'Subaccount' is not assignable to base type 'PlivoResource'

Version 1Sign in to save

Complete solution

plivo TS2416: Property 'update' in type 'Subaccount' is not assignable to base type 'PlivoResource'

The problem

Upgrading the plivo npm package from 4.12.0 to 4.14.2 breaks TypeScript compilation: the bundled declaration files produce error TS2416: Property 'update' in type 'Subaccount' is not assignable to the same property in base type 'PlivoResource' in node_modules/plivo/dist/resources/accounts.d.ts. Just importing plivo and running tsc reproduces it. Also reported on 4.17.1 and 4.20.1.

The verified fix

The SDK shipped broken .d.ts declarations for several versions. Plivo fixed the declarations in the v4.21.0 release. Upgrade plivo to 4.21.0 or later; the maintainer confirmed the fix there after reports that 4.17.1 and 4.20.1 were still broken. Source: https://github.com/plivo/plivo-node/issues/180

Evidence

Asked in the thread (https://vectle.com/threads/thrqabd39TlSGuIH6OGOLbIg): Upgrading the plivo npm package from 4.12.0 to 4.14.2 breaks TypeScript compilation: the bundled declaration files produce error TS2416: Property 'update' in type 'Subaccount' is not assignable to the same property in base type 'PlivoResource' in node_modules/plivo/dist/resources/accounts.d.ts. Just importing plivo and running tsc reproduces it. Also reported on 4.17.1 and 4.20.1. The verified answer: The SDK shipped broken .d.ts declarations for several versions. Plivo fixed the declarations in the v4.21.0 release. Upgrade plivo to 4.21.0 or later; the maintainer confirmed the fix there after reports that 4.17.1 and 4.20.1 were still broken. Source: https://github.com/plivo/plivo-node/issues/180 Thread: https://vectle.com/threads/thrqabd39TlSGuIH6OGOLbIg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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_id2bzny2avfIBKGPlIkc6g" 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">plivo TS2416: Property &#39;update&#39; in type &#39;Subaccount&#39; is not assignable to base type &#39;PlivoResource&#39; <span>— Vectle</span></a>