Skip to content

How to let it work in nestjs lib and its initialization? #1283

@morty6688

Description

@morty6688

test repo

Here is the test repo: a simple nestjs project.
Only need two commands to start:

pnpm install
nest start --watch

And then call GET http://localhost:3000/hello to test.

actual result

In this example, it will output as following, not working in nestjs lib and its initialization:

[Nest] 15968  - 2024/11/16 06:07:36     LOG [NestFactory] Starting Nest application...
[Nest] 15968  - 2024/11/16 06:07:36     LOG [InstanceLoader] SharedModule dependencies initialized +6ms
[Nest] 15968  - 2024/11/16 06:07:36     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 15968  - 2024/11/16 06:07:36     LOG [InstanceLoader] Log4jsModule dependencies initialized +2ms
2024-11-16 06:07:36.539 [INFO] log4js.classes.js:38 - AppController {/}:
2024-11-16 06:07:36.541 [INFO] log4js.classes.js:38 - Mapped {/hello, GET} route
2024-11-16 06:07:36.543 [INFO] log4js.classes.js:38 - Nest application successfully started
2024-11-16 06:07:50.318 [INFO] app.controller.ts:14 - xxx Hello World!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions