diff --git a/packages/nuxt/src/app/components/nuxt-link.ts b/packages/nuxt/src/app/components/nuxt-link.ts index 7407f30f11e..baab6d0b9cb 100644 --- a/packages/nuxt/src/app/components/nuxt-link.ts +++ b/packages/nuxt/src/app/components/nuxt-link.ts @@ -197,7 +197,7 @@ export function defineNuxtLink (options: NuxtLinkOptions) { let unobserve: Function | null = null onMounted(() => { idleId = requestIdleCallback(() => { - if (el?.value) { + if (el?.value?.tagName) { unobserve = observer!.observe(el.value, async () => { unobserve?.() unobserve = null