I’m aware you need to install the same version of the packages to avoid any issues while taking the courses. However, I tried to use the latest version of Joi (17.3.0 at the moment of writing this post) in the Node.js - section 4 - Intro to express - Input validation lesson.
That version is not working since I got a Joi.validate is not a function message. For the sake of curiosity, what would be a valid way to achieve the same result using the latest version of Joi?
if you still have that error, check if you required Joi at the start of the file (that was my mistake when I passed all the genre code to a new file inside de router folder)