작성
·
330
1
(node:33188) UnhandledPromiseRejectionWarning: TypeError: (0 , express_basic_auth_1.default) is not a function
at bootstrap (C:\Users\dial\NestJS\working\letsstart\project\src\main.ts:15:21)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:33188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:33188) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
위와 같은 오류가 뜨는데요
expressBasicAuth 미들웨어를 추가하니까 뜹니다. 이유가 무엇일까요..
해결되었습니다 감사합니당.!