With Nest.js i'm using @nestjs/swagger plugin. all works well on dev. in jekins, i'm pulling the code, and doing a build. For that, i have installed nest cli on the server. i'm getting this error at the build stage:
> nest build
Error "@nestjs/swagger/plugin" plugin could not be found!
what am i doing wrong? server is ubuntu 17, in my nest-cli.json i have this:
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"plugins": ["@nestjs/swagger/plugin"]
}
}
and again, it works fine locally. problem is only on jenkins workspace. thanks!
Nest plugin can be found under your node_modules directory under: @nestjs/swagger/dist/plugin
This should be set in your complier options:
"compilerOptions": {
"plugins": ["@nestjs/swagger/dist/plugin"]
}