/nx-swagger

nx nestjs swagger example

Primary LanguageTypeScript

NxSwagger

Repo to reproduce 902: Typescript Enum array raises CircularDependencyError

init nestjs swagger

npm install --save @nestjs/swagger swagger-ui-express

use nestjs swagger cli plugin

{
  "projects": {
    "api": {
      "architect": {
        "build": {
          "builder": "@nrwl/node:build",
          "options": {
            "webpackConfig": "apps/api/webpack.config.js",

nest-cli vs. webpack

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

example code from: https://github.com/nestjs/nest/tree/master/sample/11-swagger/src

start

Issue

#902: Typescript Enum array raises CircularDependencyError