작성한 질문수
따라하며 배우는 NestJS
회원가입 기능 구현
23.01.12 08:35 작성
·
1.4K
0
TypeError: this.userRepository.createUser is not a function
포스트맨에서
localhost:3000/auth/signup실행시 서버가 터지며ㅑㄴ서
이런 에러를 내보내고 있는데, 아무리봐도 코드는 모두 똑같아서 무슨 문제인지 찾아지지가 않네요ㅠ
답변 1
2023. 01. 27. 13:53
auth.service.ts에서
@InjectRepository(UserRepository) 주석 처리 하고 진행해보세요!
https://stackoverflow.com/questions/60777204/typeerror-repository-method-is-not-a-function-nestjs-typeorm
여기 참고 했습니다