How do you use the new swagger plugin? I have it in my compiler options:
"compilerOptions": {
"plugins": ["@nestjs/swagger/plugin"]
}
And I am running the application with nest start
as described: https://docs.nestjs.com/recipes/swagger#migration-to-40
However, no automated-magic documentation appears to be happening.
It was an issue with global dependencies conflicting with local ones, as well as the old build (set to incremental
mode) conflicting with the new property generation. Did the following to resolve the issue:
yarn global upgrade upgrade @nestjs/cli
, or with npm (npm update -g @nestjs/cli
)nest update
nest-cli.json
: "compilerOptions": {
"plugins": ["@nestjs/swagger/plugin"]
}
nest start
or nest start:dev
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With