We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ff7459 commit 354d974Copy full SHA for 354d974
1 file changed
‎src/core/routerResolver.ts‎
@@ -392,8 +392,7 @@ async function resolveRouterReference(
392
}
393
394
395
- // If it's not a dotted reference or we couldn't find the attribute, try building the router graph from the imported file directly.
396
- // This handles cases where the entire module is included as a router (e.g., "include_router(api_routes)").
+ // Resolve by variable name for named imports, or fall back to full-file discovery
397
const targetVarName = namedImport ? originalName : undefined
398
return buildRouterGraphInternal(importedFileUri, ctx, targetVarName)
399
0 commit comments