Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on 6.0.1 there is a bug with stencil build Property 'formatProps' in type 'UPI' is not assignable to the same property #2774

Closed
oleksii-loian opened this issue Jul 30, 2024 · 1 comment

Comments

@oleksii-loian
Copy link

oleksii-loian commented Jul 30, 2024

Describe the bug
Bug is reproduced on the 6.0.1 version but not reproducing in 6.0.0-beta.1
TypeScript Property 'formatProps' in type 'UPI' is not assignable to the same property in base type 'UIElement<UPIConfiguration>'.Type '(props: UPIConfiguration) => { defaultMode: UpiMode; apps: { type: TxVariants; id: string; name: string; }[]; url?: string; paymentData?: string; qrCodeData?: string; ... 37 more ...; paymentMethodType?: string; }' is not assignable to type '(props: UPIConfiguration) => UPIConfiguration'.Call signature return types '{ defaultMode: UpiMode; apps: { type: TxVariants; id: string; name: string; }[]; url?: string; paymentData?: string; qrCodeData?: string; brandLogo?: string; order?: Order; ... 35 more ...; paymentMethodType?: string; }' and 'UPIConfiguration' are incompatible.The types of 'apps' are incompatible between these types.Type '{ type: TxVariants; id: string; name: string; }[]' is not assignable to type 'App[]'.Type '{ type: TxVariants; id: string; name: string; }' is not assignable to type 'App'.Types of property 'type' are incompatible.Type 'TxVariants' is not assignable to type 'UpiType'.
To Reproduce
Steps to reproduce the behavior:

  1. Add the Adyen Checkout as dependency in the stencil web component
  2. Build

Expected behavior
Build should be proceed.

Screenshots
image

@longyulongyu
Copy link
Contributor

Hi @oleksii-loian we released v6.0.2 yesterday, could you try the version and check if your issue is solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants