Angular SSR creates mismatch between classes and their instances in prerendering

Discussão em 'Angular' iniciado por Desperado, Janeiro 26, 2025.

  1. Desperado

    Desperado Guest

    This doesn't happen in development ng serve only in production when I run the node script produced by ng-build in the server folder.

    When I try to check type of an object, i.e. myObj instanceof MyClass I get false in the request/response pipeline inside server.ts.

    Are classes definitions loaded from different files in production or what?

    Continue reading...

Compartilhe esta Página