Module not found: Error: Can't resolve 'class-transformer/storage' - Angular Universal / NestJs

Discussão em 'Angular' iniciado por Dinaiscoding, Dezembro 15, 2024.

  1. Dinaiscoding

    Dinaiscoding Guest

    Folks, I've been trying to implement an application using angular with angular universal and NestJs. I believe that is possible to seize the nest server not only for SSR, but also to also provide API endpoints.

    I've made the setup recommended on https://github.com/nestjs/ng-universal using ng add @nestjs/ng-universal, pretty standard. After that I added my code to the angular src folder and installed the needed dependencies.

    The problem is that when I try to import a module to nest app.module, I get the following error: Error: Module not found: Error: Can't resolve 'class-transformer/storage'

    I've tried to use webpack, but since my knowledge on webpack is petty, the results were failure after failure, as expected.

    First, is it possible to seize the server also to provide endpoints? Second, what should I do to resolve this module?

    Please find below the repository for reproducing the issue:

    https://github.com/vitordhers/universal-nest

    Thanks in advance

    Continue reading...

Compartilhe esta Página