강의

멘토링

커뮤니티

Inflearn Community Q&A

dev8991's profile image
dev8991

asked

Practical front-end skills learned through Trello development: Vuejs, Vuex, Vue-Router

Add a board

서버에러 발생

Written on

·

205

0

안녕하세요. 백엔드개발자인데 프론트에 관심이 있어 강의 보고있습니다.

먼저 너무 멋진 강의 감사합니다.

js알못이지만, 열심히 따라오고 있습니다.

보드 추가 api호출하면 아래와 같이 에러가 발생합니다.

혹시 어떤 케이스인지 알수 있을까요??

 

server is running localhost:3000

Error: not found

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:45:8)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at serveStatic (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/serve-static/index.js:75:16)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at urlencodedParser (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/types/urlencoded.js:82:7)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/read.js:130:5

    at invokeCallback (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:224:16)

    at done (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:213:7)

    at IncomingMessage.onEnd (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:273:7)

POST /board 500 15.730 ms - 3341

TypeError: res.status is not a function

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:50:7)

    at Layer.handle_error (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:71:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:315:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:45:3)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at serveStatic (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/serve-static/index.js:75:16)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at urlencodedParser (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/types/urlencoded.js:82:7)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

 

vuejsjavascript

Answer

This question is waiting for answers
Be the first to answer!
dev8991's profile image
dev8991

asked

Ask a question