Visual Studio Code does not recognize @angular/ssr modules, but the component is already...

Discussão em 'Angular' iniciado por Rosario Di Mari, Agosto 22, 2025.

  1. Good morning. I'm using visual studio code for an Angular 17 web app. I'm trying to implement Server Side Rendering. The module @ængular/ssr is already installed, but the relative imports:

    import { RenderMode, ServerRoute } from '@angular/ssr';

    are underlined and the IDE report error like this


    Module '"@angular/ssr"' has no exported member 'RenderMode'.ts(2305)
    ​

    If I try to add ssr as ng component i see the following message in terminal

    Skipping installation: Package already installed
    UPDATE tsconfig.app.json (375 bytes)
    UPDATE package.json (1529 bytes)


    The files using @angular/ssr imports are positioned in app directory

    [​IMG]

    Continue reading...

Compartilhe esta Página