I am using Joi version:17.6.0 but it give me the above error.
This is my code.
The error which I am facing
I am using Insomnia and this is the data which I want to validate.
Don't use new Joi.object() but just Joi.object(), it's not a class.
new Joi.object()
Joi.object()