인프런 커뮤니티 질문&답변
오류 질문입니다
작성
·
3K
2
오류가 계속 이렇게 뜨는데 왜 그런건가요?
src/auth/auth.service.ts:18:58 - error TS2554: Expected 0 arguments, but got 1. 18 const cat = await this.catsRepository.findCatByEmail(email); ~~~~~ src/auth/auth.service.ts:20:10 - error TS1345: An expression of type 'void' cannot be tested for truthiness. 20 if (!cat) { ~~~ src/auth/auth.service.ts:27:11 - error TS2339: Property 'password' does not exist on type 'never'. 27 cat.password, ~~~~~~~~ src/auth/auth.service.ts:34:46 - error TS2339: Property 'id' does not exist on type 'never'. 34 const payload = { email: email, sub: cat.id }; ~~ src/auth/jwt/jwt.strategy.ts:18:43 - error TS2339: Property 'findCatByIdWithoutPassword' does not exist on type 'CatsRepository'. 18 const cat = await this.catsRepository.findCatByIdWithoutPassword( ~~~~~~~~~~~~~~~~~~~~~~~~~~ [오후 9:01:08] Found 5 errors. Watching for file changes.





.png?w=112)