“app.send bukan fungsi” Kode Jawaban

res.send bukan fungsi

You need to do res.end instead of res.send. 
res.send is a part of express module and not of core http module.
zizi-engi

app.send bukan fungsi

TypeError: app.send is not a function
    at /Users/micisrsr/delivery/js/mern/index.js:29:9
    at Layer.handle [as handle_request] (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/layer.js:95:5)
    at /Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/index.js:335:12)
    at next (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/middleware/init.js:40:5)
    at Layer.handle [as handle_request] (/Users/micisrsr/delivery/js/mern/node_modules/express/lib/router/layer.js:95:5)
Ugliest Unicorn

Jawaban yang mirip dengan “app.send bukan fungsi”

Pertanyaan yang mirip dengan “app.send bukan fungsi”

Lebih banyak jawaban terkait untuk “app.send bukan fungsi” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya