codestates / codestates/Cityrunner
[Express] Router 관련 에러
Open
Error
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
> > ### 어떤 에러인가요?
> > 서버 실행이 안됨
> > ### 에러 메시지
> > ```shell
> > Error: Route.get() requires a callback function but got a [object Undefined]
> > ```
> >
> > ### 에러 핸들링 방법
> >
> > * 주로 위 에러는 연결시 오타나 import문제때문이다. 아래 링크는 이런 이유.
> > * 내가 안되던 이유 : Router폴더 속 라우터 파일들에 api문서 기반으로 라우팅을 해놨는데,
> > 아직 라우팅 후 실행 내용, controller에 아예 작성이 안되어있어서 에러가 나는 거였다.
> >
> >
> > ### 에러 핸들링을 위해 참고한 레퍼런스 링크
> > https://avengersrhydon1121.tistory.com/299
> > https://www.inflearn.com/questions/79171
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.