Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] Code is still collapsed in Vue files using Volar takeover mode #30

Closed
wenfangdu opened this issue Apr 20, 2023 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@wenfangdu
Copy link

wenfangdu commented Apr 20, 2023

image

@yoavbls yoavbls added the bug Something isn't working label Apr 21, 2023
@yoavbls
Copy link
Owner

yoavbls commented Apr 21, 2023

@wenfangdu I don't think it is related to Volar.
It looks like the formatting of this type with prettier failed.
Can you paste here the original error please so I can investigate?

@wenfangdu
Copy link
Author

@yoavbls

Argument of type '{ $ref: null; ref: (ref: any) => any; columns: ({ label: string; prop: string; } | { label: string; formatter: ({ ip_type }: any) => any; } | { actions: { label: string; disabled: ({ contract_id }: any) => boolean; handler({ contract_id }: any): void; }[]; })[]; ... 4 more ...; load(): Promise<...>; }' is not assignable to parameter of type 'VTableConfig'.
  Property 'data' is missing in type '{ $ref: null; ref: (ref: any) => any; columns: ({ label: string; prop: string; } | { label: string; formatter: ({ ip_type }: any) => any; } | { actions: { label: string; disabled: ({ contract_id }: any) => boolean; handler({ contract_id }: any): void; }[]; })[]; ... 4 more ...; load(): Promise<...>; }' but required in type 'VTableConfig'.ts(2345)
v-table.vue(44, 5): 'data' is declared here.

@yoavbls
Copy link
Owner

yoavbls commented Apr 22, 2023

v0.3.0 with the fix is out!
You can update now 🙂

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants