Your code is using Angular 19+ APIs, but your app is on Angular 17.
RenderMode and ServerRoute (from @angular/ssr) were introduced with Angular’s hybrid rendering / route-level render modes in v19. They do not exist in v17, so VS Code correctly reports it as no exported member.
How to fix this:
Upgrade to Angular 19+ (CLI and framework must match)
Do Verify @angular/ssr is also v19+ in package.json.
After updating, your imports are valid
If the editor still underlines types, restart the TS server in VS Code (Command Palette -> “Developer: Restart TypeScript Server”).
If you dont want to upgrade now remove those imports and use the legacy SSR pattern on v17.