skip to Main Content

Javascript – Cannot read property 'caseSensitive' of undefined in express router

javaScriptcode app.js const express = require('express') const app = express() const {route} = require('./routes/route') app.use(express.static('./public')); app.use(express.json()); app.use(express.urlencoded()); app.use(route)app.listen(5000,()=>{ console.log('server is listening at port 5000...') }) route.js const { items } = require("../data"); const express = require("express"); const route = express.Router();…

VIEW QUESTION

Redis, the client is closed

I am trying to implement redis into my nodejs and expressjs API REST, but for some reason I am getting the error The client is closed. I´ve installed redis for windows I´ve ran redis-server in the cmd. I´ve tested the…

VIEW QUESTION
Back To Top
Search