Repo to reproduce 902: Typescript Enum array raises CircularDependencyError
npm install --save @nestjs/swagger swagger-ui-express
- https://docs.nestjs.com/openapi/cli-plugin#using-the-cli-plugin
- update
nest-cli.json
{
"compilerOptions": {
"plugins": ["@nestjs/swagger/plugin"]
}
Note, that the issue does not occur in this repo (with nest-cli).
It only occurs when we use webpack:
see https://github.com/tmtron/nx-swagger
example code from: https://github.com/nestjs/nest/tree/master/sample/11-swagger/src
- start the server:
npm run start
- open the swagger-ui: http://localhost:3000/api/