-
[Node.js 에러] throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))코딩/에러 2021. 10. 6. 17:22
어느 책의 예제를 따라하다가 이런 오류를 마주쳤다면
routes 폴더의 .js의 폴더 마지막에
module.exports = router 를 추가해주면 된다.
Node.js 에러 '코딩 > 에러' 카테고리의 다른 글
[AndroidStudio 에러] AndroidStudio SDK Command-line Tools 인식 안됨 (1) 2021.12.15 [SpringBoot,Mysql 에러] SpringBoot와 Mysql 연결시 발생했던 오류,에러 (1) 2021.12.14 [Node.js 에러] Node.js 와 MySQL 연동시 (0) 2021.10.07 [C/C++] VSCODE 실행중 cl.exe build active file 에러 (0) 2020.12.22 [Django 에러] 장고에러 Error: [Errno 11001] getaddrinfo failed (2) 2020.12.15