Skip to content

Commit 501fe52

Browse files
committed
fix: find component after rc.5 refactor
Vue 3.0.0-rc.5 introduced a refactoring of the component resolution (see vuejs/core@a75b8a2) This simply fixes our implementation by using `type.components` instead of `.components` that no longer exist. The implementation in `stubs` was already fine as I used `type.components` there.
1 parent dfc34b6 commit 501fe52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/find.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function matches(node: VNode, selector: FindAllComponentsSelector): boolean {
4242

4343
// if a name is missing, then check the locally registered components in the parent
4444
if (node.component.parent) {
45-
const registry = (node.component.parent as any).components
45+
const registry = (node.component.parent as any).type.components
4646
for (const key in registry) {
4747
// is it the selector
4848
if (!selectorName && registry[key] === selector) {

0 commit comments

Comments
 (0)