diff --git a/packages/nuxt3/src/auto-imports/module.ts b/packages/nuxt3/src/auto-imports/module.ts index e4f0e8516d..1141711123 100644 --- a/packages/nuxt3/src/auto-imports/module.ts +++ b/packages/nuxt3/src/auto-imports/module.ts @@ -85,7 +85,7 @@ export default defineNuxtModule({ write: true, getContents: () => `// Generated by auto imports declare global { -${autoImports.map(i => ` const ${i.as}: typeof import('${r(i.as)}')['${i.name}']`).join('\n')} +${autoImports.map(i => ` const ${i.as}: typeof import('${r(i.from)}')['${i.name}']`).join('\n')} }\nexport {}` }) nuxt.hook('prepare:types', ({ references }) => {