title: Express app closing after any connection request after adding Redis to it
body: <p>So, I have just added Redis to my expressjs app (this is the first time I use redis), and this is all I did to add the Redis:</p>
  <pre><code>import express, { Application } from 'express';
  import session from 'express-session';
  import {createClient} from 'redis';
  import connectRedis from 'connect-redis'
  
  const app: Application = express();
  const RedisStore = connectRedis(session);
  const redisClient = createClient({
      url: 'redis://localhost:6379'
  });
  
  app.use(session({
      secret: SESSION_SECRET,
      resave: false,
      saveUninitialized: true,
      store: new RedisStore({ client: redisClient }), // added this line
      cookie: {
          maxAge: 1000 * 60 * 2,
          httpOnly: false,
          secure: false,
      }
  }));
  
  export default app;
  </code></pre>
  <p>But when I make any request to any of my express routes, I get an instant error on console, and the app is closed for any further requests. This is the error:
  <a href="https://i.stack.imgur.com/ejiSE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ejiSE.png" alt="enter image description here" /></a></p>
  <p>As you can see, there is a line <code>Server is listening on port 3000</code> at the top of the screenshot, the rest of the strings appears only when I make the first request to the api.</p>
  <p>What am I missing here, what did I do wrong? Because every video/article on internet has the same exact code...</p>