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

ERROR(vue-tsc) Property 'items' does not exist #1506

Open
slongiaru-dmind opened this issue Mar 25, 2024 · 0 comments
Open

ERROR(vue-tsc) Property 'items' does not exist #1506

slongiaru-dmind opened this issue Mar 25, 2024 · 0 comments

Comments

@slongiaru-dmind
Copy link

slongiaru-dmind commented Mar 25, 2024

Possibly a typo causing TSC compilation errors. type A appears to be unused.

ERROR(vue-tsc)  Property 'items' does not exist on type '{ items?: ({ uid: string; sku?: string | null | undefined; name?: string | null | undefined; stock_status?: ProductStockStatus | null | undefined; only_x_left_in_stock?: number | ... 1 more ... | undefined; ... 18 more ...; short_description?: { ...; } | ... 1 more ... | undefined; } | ... 6 more ... | undefined)[] ...'.
FILE  @vue-storefront/magento-types/src/Schema.ts:8045:42

8043 | }>;
8044 |
> 8045 | type A = ProductDetailsQuery['products']['items']
       |                                          ^^^^^^^
8046 | export type ProductDetailsQuery = {
8047 |   products?: {
8048 |     items?: Array<{

https://github.com/vuestorefront/magento2/blob/f58b16c652f1ab7620d298fd08b27856b66f0ba8/packages/api-types/src/Schema.ts#L8045

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

1 participant