Error Message Req.flash() requires sessions

Hey everyone,

im facing a minor issue when trying to use connect-flash. 

When i added all the neccessary configuration such as express-sessions, connect-flash and app.use() i ran nodemon everything was fine. However, when i loaded up the ejs file to view the page i get this error :

 It shows i need sessions yet i have added sessions. Unless im missing some configuration ?

Repo link : https://github.com/AlexMachin1997/Portfolio

Thanks in advance for anyone who helps :slight_smile: