remove duplicate warnings

pull/3201/head
Divyansh Singh 2 years ago
parent 1bae637ff5
commit 1ec3dcc4e1

@ -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}`)

Loading…
Cancel
Save