- Symptom
- TS2694: Namespace 'StripeConstructor' has no exported member 'Customer'TS7009: 'new' expression, whose target lacks a construct signature, implicitly has an 'any' typeStripe.Checkout.SessionCreateParams is no longer exported
- Cause
- v22 moved the types inline with the code and turned the default export into a real ES class, which broke the CommonJS companion namespace. Patches landed in 22.0.1 for the constructor and 22.3.0 for nested type access.
- Fix
- Upgrade to 22.3.0 or later. Switching the project to ESM also restores the types.
- Apply
npm install stripe@^22.3.0- Affected
- stripe-node 22.0.0 to 22.2.x with TypeScript module commonjs; fixed in 22.3.0, 2026-06-24
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders