flutter

TypeError: Router.use() requires a middleware function but got a undefined

햎피 2022. 7. 20. 15:37
반응형

TypeError: Router.use() requires a middleware function but got a undefined

해결법 : export router를 맨 밑에 작성 해준다.

export const tripRouter = router;

 

 

고치고나면 잘 작동함!

반응형

'flutter' 카테고리의 다른 글

mongoose subdocument  (0) 2022.07.21
mongoose db schema reference  (0) 2022.07.21
Flask vs Django vs NodeJs  (0) 2022.06.29
flutter provider.of vs Consumer  (1) 2022.06.28
flutter dependencies vs dev dependencies  (0) 2022.06.24