#Akin-labels-error

1 messages · Page 1 of 1 (latest)

pastel rock
#

Hi there! What error are you getting exactly?

vestal shadow
#

Here is an image if that is helpful

#

(property) ElementsProps.options?: StripeElementsOptions
Optional Elements configuration options. Once the stripe prop has been set, these options cannot be changed.

Type '{ clientSecret: string; appearance: { labels: string; rules: { ".Input": { marginTop: string; borderRadius: string; backgroundColor: string; }; }; }; }' is not assignable to type 'StripeElementsOptions'.
The types of 'appearance.labels' are incompatible between these types.
Type 'string' is not assignable to type '"floating" | "above"'.ts(2322)
react-stripe.d.ts(445, 5): The expected type comes from property 'options' which is declared here on type 'IntrinsicAttributes & ElementsProps & { children?: ReactNode; }'

pastel rock
#

Thanks, give me a few moments to look.

pastel rock
#

This looks like it could be a bug on our end. Continuing to dig a bit more.

#

@vestal shadow are you specifying the labels: string type on your end anywhere?

#

Never mind ignore that. Do you still get the error if you use 'floating' instead of "floating"?

vestal shadow
#

No just there

pastel rock
#

Did you test switching to single quotes?

vestal shadow
#

Yes but no uck

pastel rock
#

Okay yeah I didn't think that should change things but wanted to check.

#

I believe this is a bug on our end but I'll need to reproduce and then file a ticket internally to get this fixed up if it indeed is.

vestal shadow
#

Thanks

pastel rock
#

@vestal shadow can you email in to support@stripe.com with the details of what we spoke about here and mention my username? If you can share a runnable small reproduction of this that would be very helpful to get started as well. Then my team can keep you up-to-date on the fix here.

vestal shadow
#

Yes i can do that.