angular SSR using @nguniversal/express-engine package get this error (ERROR in error TS6053:...

Discussão em 'Angular' iniciado por mf340, Março 11, 2025.

  1. mf340

    mf340 Guest

    I am using @nguniversal/express-engine to Server Side Rendering in angular.When I run $ nmp build:ssr or $ npm run dev:ssr i get this error.

    ERROR in error TS6053: File 'C:/dev/web/workspace/project/src/server.ngtypecheck.ts' not found.
    error TS6053: File 'C:/dev/web/workspace/project/src/server.ts' not found.
    error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ngtypecheck.ts' not found.
    error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ts' not found.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! client@0.0.0 build:ssr: `ng build --prod && ng run client:server:production`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the client@0.0.0 build:ssr script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    Continue reading...

Compartilhe esta Página