#MidnightCrow

1 messages ยท Page 1 of 1 (latest)

fervent sunBOT
outer cargo
#

Can you elaborate? What's not working? What error message do you see?

muted crypt
#

Argument of type '{ elements: StripeElements | undefined; params: { billing_details: { name: string; }; }; }' is not assignable to parameter of type 'CreatePaymentMethodData'.
Object literal may only specify known properties, and 'elements' does not exist in type 'CreatePaymentMethodData'.

#

any clue why these types would not match?

fervent sunBOT
shrewd meadow
#

Hello ๐Ÿ‘‹

muted crypt
#

Hello hanzo, ty for your time

shrewd meadow
#

If you console.log elements, what are you seeing there?

#

and just to confirm, you're seeing this warning/error in your editor correct? Not actually while you run the code?

muted crypt
#

It won't let me compile because of the error, I can't print it out now but the type of the elements is in the error

#

elements: StripeElements | undefined

shrewd meadow
#

I see. Let me take a look

#

yeah not sure why the other functions are getting overridden here
Passing the elements object should use CreatePaymentMethodFromElement type instead

fervent sunBOT
primal vale
#

๐Ÿ‘‹ hopping in here as well - @muted crypt do you know what version of the stripejs module you have downloaded?

muted crypt
#

@stripe/stripe-js": "^1.48.0"

primal vale