#Maru
1 messages ยท Page 1 of 1 (latest)
Hello ๐
helloo
Are you using the official stripe-node library?
I believe the latest types were added in with version 10.0.0
https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1000---2022-08-02
yes, we are
I have this at our package.json:
inside "dependencies":
"stripe": "^8.222.0",
previously we had "stripe": "^8.166.0",
I removed the stripe folder at node_modules and run npm install again, which installed Stripe
the VERSION file says 8.222 but at types folder I see a "2020-08-27" folder, which is weird right?
Also I made npm run build and I have lot of errors at some Stripe models
Object literal may only specify known properties, and 'save_default_payment_method' does not exist in type 'PaymentSettings'.
an example of one of thoseโ๐ผ
that's not the latest version though
Types for 2022-08-01 were introduced in version 10.0.0
You're installing 8.222.0 which is a version that was introduced prior to releasing 2022-08-01 types
does that make sense?
Support for save_default_payment_method on Subscription.payment_settings was introduced in version 9.2.0
https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#920---2022-05-19
So you're using an older version of the library