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
- add
apps/oapi/webpack.config.js
- update
angular.json
{
"projects": {
"api": {
"architect": {
"build": {
"builder": "@nrwl/node:build",
"options": {
"webpackConfig": "apps/api/webpack.config.js",
Note, that the occurs in this repo (with webpack).
It does not occur when we use nest-cli:
see https://github.com/tmtron/nestjs-swagger-902
The branch workaround_nx2147-587168523
contains a workaround:
see nx issue 2147 comment-587168523
example code from: https://github.com/nestjs/nest/tree/master/sample/11-swagger/src
- start the server:
npm run start:api
- start the client:
npm run start
- open the client: http://localhost:4200
- open the swagger-ui: http://localhost:4200/api/