class-validator 강의편 듣는중에 에러가나요...
미해결
Slack 클론 코딩[백엔드 with NestJS + TypeORM]
main.ts 페이지에 import { ValidationPipe } from '@nestjs/common'; app.useGlobalPipes(new ValidationPipe()); 이렇게 추가했습니다. 그런데 validation 체크하려고 postman에서 api 실행시키면 [Nest] 16332 - 2021. 11. 23. 오전 8:34:03 ERROR [ExceptionsHandler] classTransformer.plainToClass is not a function TypeError: classTransformer.plainToClass is not a function at ValidationPipe.transform (C:\D\maxerve\code\git_hsh\slackClone\nestJs\node_modules\@nestjs\common\pipes\validation.pipe.js:51:39) at C:\D\maxerve\code\git_hsh\slackClone\nestJs\node_modules\@nestjs\core\pipes\pipes-consumer.js:16:33 at processTicksAndRejections (internal/process/task_queues.js:95:5) 이렇게 에러가 나더라고요... 라이브러리 버전은 "class-transformer": "^0.5.0", "class-validator": "^0.13.2", 확인 가능할까요?..
- class-validator
- TypeORM
- NestJS
- express
- nodejs





