BoardsService에 getAllBoards property가 없다고 나옵니다
463
작성한 질문수 3
안녕하세요! 좋은 강의 무료로 제공해주셔서 정말 감사합니다!
다름이 아니라 강의 초반 board api 작성중인데요!
강의와 똑같이 board controller에서 boardService DI하고 getAllBoards, createBoard 메서드를 불러왔는데, 아래와 같은 에러가 발생합니다
어떻게 처리하면 될지 알려주시면 정말 감사드리겠습니다!
boards.service.ts

boards.controller.ts

Error log
src/boards/boards.controller.ts:2:23 - error TS2306: File '/Users/jeongsoi/project/maumlab/src/boards/board.model.ts' is not a module.
2 import { Board } from './board.model';
~~~~~~~~~~~~~~~
src/boards/boards.controller.ts:15:35 - error TS2339: Property 'getAllBoards' does not exist on type 'BoardsService'.
15 return this.boardsService.getAllBoards();
~~~~~~~~~~~~
src/boards/boards.controller.ts:22:35 - error TS2339: Property 'createBoard' does not exist on type 'BoardsService'.
22 return this.boardsService.createBoard(title, description);
답변 0
로거 객체 질문
0
59
1
회원가입 기능 구현 버전 변경에 따른 코드수정(해당 사항은 업데이트 예정이 없나요?)
0
78
1
파일을 찾지 못하는 오류가 계속 뜹니다
0
102
1
services와 repository 파일에서 해야하는 작업
0
122
1
커스텀 파이프에서 value의 타입이 string 이 아닐때
0
169
1
nestjs 기본 구조 설명에서 궁금한게 있습니다.
0
178
0
typeorm ^10.0.2 버전 사용시 No metadata for "BoardRepository" was found. 오류 발생 해결방법.
3
275
1
Model과 Dto의 차이점을 좀 쉽게 알수 있을까요?
0
681
1
강의 자료 관련해서 글 남깁니다.
0
482
1
"ID로 특정 게시물 가져오기" 부분이 잘못되었습니다.
0
453
1
선생님 nestjs랑 Nextjs랑 같이 연동해서 작업하는거 어떻게 생각하시나요?
0
2514
1
쌤 근데 enum 말고 type 으로 타입선언해주면안될까요?
0
613
1
pgAdmin 4에서 데이터 베이스 만들어주기 부분
0
645
1
강의 자료 관련해서 질문있습니다.
0
463
2
port 5432 failed: recived invalid response to ssl negotiation
0
767
1
repository.ts 에서 method 를 가져 오고 싶은데, 해당 메소드가 없다고 뜨네요
0
400
1
컨트롤러에선 async/await 사용하지 않아도 되는 이유
1
693
1
마지막 강의 영상에서 배포 자료는 어디서 볼 수 있나요?
0
387
1
No repository for 질문
0
527
1
특정 게시물을 찾을 때 없는 경우 에러 메세지 생성 에러
0
476
1
XML파일도 링크 공유해주시면 감사하겠습니다.
0
348
1
회원가입 기능 구현 중 오류가 났습니다.
0
498
1
NotFoundException
0
711
1
도와주세요 ㅠㅠ!!
0
1083
2





