You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a child component that will be included inside the mixin,
a mixin
a parent component that will use the mixin.
when you edit the parent component, the instance of <ChildComponent /> within the template does not receive any coloration or autocomplete, such as for the required value: string prop.
everything still compiles and works at runtime, though
components registered inside a mixin should have their definitions recognised in the parent components that import the mixin.
What is actually happening?
the mixin's components are colored like native elements in the parent component's template, and there is no component-specific autocomplete options available
Vue - Official extension or vue-tsc version
2.2.10
VSCode version
1.99.3 (system setup)
Vue version
3.5.13
TypeScript version
5.8.3
System Info
package.json dependencies
Steps to reproduce
create 3 files:
<ChildComponent />
within the template does not receive any coloration or autocomplete, such as for the requiredvalue: string
prop.ChildComponent.vue
mixin.ts
ParentComponent.vue
What is expected?
components registered inside a mixin should have their definitions recognised in the parent components that import the mixin.
What is actually happening?
the mixin's components are colored like native elements in the parent component's template, and there is no component-specific autocomplete options available
Link to minimal reproduction
https://play.vuejs.org/#eNq1VE2P0zAQ/SuWL4BUJQc4LdmVYLUHkIAVyw1ziJJp14tjB9spQVH+OzOTNGnSgliJbdU6fvPhmTfP6eSbuk72DcgLmUWoapNHuFJWxew292DjtatqZ/FBpAhn6bGPzULhdR2Fye3uUskYlERcY4SPohMlbLWFOUMvtt5VQkk8T8nXk+f6pNErSVcGqpPjlIWWI/GEvDG8Hp/0vKMOisM2XAgGVFwl3BDa43//grNm6dDQldxgM4WzW71LHoKzyA5mEFgUJdUG/Kc6amexYc4t8KNkboz7+Z6x6BvAvANe3EPx/Qz+EFrClLz1EMDvsbnJFnO/gziYb+4+QovPk7FyZWPQ+y/GzxCcaajGwe1tY0ss+8iPq33HE9B29yXctBFsODRFhZInsUPeSD3R9qfW53JfJq84DklFFs9M8FRp1/falPP497lpgOQEYdwo+YTq60SlW21ne5Iy8Ail2bwCnuOyWyZbRc6GGvw6aJC3bPh2UN6kO2WRsyUdJ5R9oPhnQRTkJiaRi64byBJ9/5+JehwJy/JHDmrv6vkacp3TTsX4q8btXfQoRHanr4cfjfZQTpeGQJLj0ZVdEsfMJjEgXf/cnJ+IWKlwEsPpOMY4+o3E4KsCtTro6PIMPeS9eh8xpOIy+2aAsT9cqUNcZP8bRoQGLA==
Any additional comments?
Please let me know if there's something I'm doing wrong.
The text was updated successfully, but these errors were encountered: