로그인 기능 개발을 위해 로직을 작성 후 서버 실행을 하니 다음과 같은 오류가 떴다

구글링을 해보니 import때문에 발생한 문제라고 한다
Nest.js앱에 있는 tsconfig.json에 들어가 "esModuleInterop": true를 추가해주자❗️
{
  "compilerOptions": {
    "module": "commonjs",
    "declaration": true,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "esModuleInterop": true,      //# ⭐️추가해줘야 하는 항목❗️
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "target": "ES2021",
    "sourceMap": true,
    "outDir": "./dist",
    "baseUrl": "./",
    "incremental": true,
    "skipLibCheck": true,
    "strictNullChecks": false,
    "noImplicitAny": false,
    "strictBindCallApply": false,
    "forceConsistentCasingInFileNames": false,
    "noFallthroughCasesInSwitch": false
  }
}
