From cea69b6832550bc2da08084929dec508213286f2 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 10 Sep 2024 22:36:53 +0100 Subject: [PATCH] fix(nuxt): fall back to original component `filePath` (#28925) --- packages/nuxt/src/components/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/components/module.ts b/packages/nuxt/src/components/module.ts index 9ed4127c7a..9fa26f4ed4 100644 --- a/packages/nuxt/src/components/module.ts +++ b/packages/nuxt/src/components/module.ts @@ -171,7 +171,7 @@ export default defineNuxtModule({ for (const component of newComponents) { if (!(component as any /* untyped internal property */)._scanned && !(component.filePath in nuxt.vfs) && !existsSync(component.filePath)) { // attempt to resolve component path - component.filePath = await resolvePath(component.filePath) + component.filePath = await resolvePath(component.filePath, { fallbackToOriginal: true }) } if (component.mode === 'client' && !newComponents.some(c => c.pascalName === component.pascalName && c.mode === 'server')) { newComponents.push({