title: Nest JS Cannot read property of undefined
body: <p>My application was working fine, and it stopped after trying to get the documentation with swagger, i think it may be a dependency issue, but can't find it anywhere. </p>
  
  <p>I keep getting the error </p>
  
  <blockquote>
    <p>10:10:22 PM - Starting compilation in watch mode...</p>
    
    <p>Error  Cannot read property 'getSymbol' of undefined</p>
  </blockquote>
  
  <p>I don't know where getSymbol is used, and the error doesn't seem to help much. Hope someone can help me fix this issue. The complete application code can be found at:</p>
  
  <p><a href="https://github.com/JSLearningCode/enderecosAlunosAPI" rel="nofollow noreferrer">https://github.com/JSLearningCode/enderecosAlunosAPI</a></p>
  
  <p>Any help is welcome. </p>
  
  <p>EDIT:
  Running in dev mode I got this output:</p>
  
  <blockquote>
    <p>/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/typescript/lib/typescript.js:95877
                    throw e;
                    ^</p>
    
    <p>TypeError: Cannot read property 'getSymbol' of undefined
        at Object.isArray (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/utils/ast-utils.js:6:25)
        at getTypeReferenceAsString (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/utils/plugin-utils.js:12:21)
        at Object.getTypeReferenceAsString (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/utils/plugin-utils.js:31:29)
        at ControllerClassVisitor.createTypePropertyAssignment (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/visitors/controller-class.visitor.js:51:44)
        at ControllerClassVisitor.createDecoratorObjectLiteralExpr (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/visitors/controller-class.visitor.js:38:18)
        at ControllerClassVisitor.addDecoratorToNode (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/visitors/controller-class.visitor.js:29:22)
        at visitNode (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/visitors/controller-class.visitor.js:16:29)
        at visitNodes (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/typescript/lib/typescript.js:70998:48)
        at Object.visitEachChild (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/typescript/lib/typescript.js:71266:355)
        at visitNode (/home/william/Documentos/lemobs/enderecosAlunosAPI/node_modules/@nestjs/swagger/dist/plugin/visitors/controller-class.visitor.js:18:23)
    error Command failed with exit code 1.</p>
  </blockquote>