1
그것은에서 일어나는
Argument of type '(error: any) => void' is not assignable to parameter of type '(err: any, caught: Observable) => ObservableInput<{}>'. Type 'void' is not assignable to type 'ObservableInput<{}>'.
.catch((error:any) => console.log(error));
@Carcigenicate 나는 console.log를 읽어 콘솔에 기록 할뿐만 아니라 리턴 기능도 제공한다. 이 문제에 대한 정답의 마지막 주석에서 설명했습니다. https://stackoverflow.com/questions/39406043/how-to-fetch-json-file-in-angular-2 – ezzzCash
@trevor thanks! – ezzzCash