NuxtN
Nuxt2y ago
milesj

Auto-import of `Link` not working

I'm trying to create a Link component at components/Link, that wraps NuxtLink. The component code is very simple, but Nuxt's auto-import logic is pulling in the Link component from nuxt. Here's the snippet:

    'Link': typeof import("../../node_modules/.pnpm/nuxt@3.11.1_@types+node@20.11.30_eslint@8.57.0_typescript@5.4.3_vite@5.2.4_vue-tsc@2.0.7/node_modules/nuxt/dist/head/runtime/components")['Link']


I've tried a handful of settings, but nothing has worked. Any ideas?
Was this page helpful?