From 16984b7c7edb36751124344f27a5b316e5795b5b Mon Sep 17 00:00:00 2001 From: tbitw2549 Date: Wed, 23 Oct 2024 21:13:08 +0300 Subject: [PATCH] fix: mark chunk as existent --- 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 67769f6271..5663b05ac5 100644 --- a/packages/nuxt/src/components/module.ts +++ b/packages/nuxt/src/components/module.ts @@ -145,7 +145,7 @@ export default defineNuxtModule({ const sourceFiles = getComponents().filter(c => c.global).map(c => relative(nuxt.options.srcDir, c.filePath)) for (const chunkId in manifest) { - const chunk = manifest[chunkId] + const chunk = manifest[chunkId]! if (chunk.isEntry) { chunk.dynamicImports = chunk.dynamicImports?.filter(i => !sourceFiles.includes(i))