diff --git a/server/utils/prefetchTags.tsx b/server/utils/prefetchTags.tsx index 4894834d3..11f8a8170 100644 --- a/server/utils/prefetchTags.tsx +++ b/server/utils/prefetchTags.tsx @@ -36,7 +36,7 @@ if (env.isProduction) { file: string ): string[] => [ manifest[file]["file"], - ...manifest[file]["imports"].map( + ...(manifest[file]["imports"] ?? []).map( (entry: string) => manifest[entry]["file"] ), ];