From 1ec3dcc4e1a35d5ccf7281ff48694781858bd120 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 30 Dec 2023 16:00:35 +0530 Subject: [PATCH] remove duplicate warnings --- src/node/plugins/dynamicRoutesPlugin.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/node/plugins/dynamicRoutesPlugin.ts b/src/node/plugins/dynamicRoutesPlugin.ts index ca0db3b7..cf9576ae 100644 --- a/src/node/plugins/dynamicRoutesPlugin.ts +++ b/src/node/plugins/dynamicRoutesPlugin.ts @@ -199,14 +199,6 @@ export async function resolveDynamicRoutes( undefined, 'silent' )) as RouteModule - - if (!mod.config.paths) { - throw new Error( - `Invalid paths file export in ${pathsFile}. ` + - `Expects default export of an object with a "paths" property.` - ) - } - routeModuleCache.set(pathsFile, mod) } catch (e: any) { logger.warn(`${c.yellow(`Failed to load ${pathsFile}:`)}\n${e.stack}`)