You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oh I found the cause of the error!
cause error:
const {validate} = Joi.object({
username: Joi.string().required()
})
const result =validate({
username: '666'
})
fix error:
const temp = Joi.object({
username: Joi.string().required()
})
const result = temp.validate({
username: '666'
})
I don't know if this is a bug or not。
Support plan
Context
What are you trying to achieve or the steps to reproduce?
fix error
What was the result you got?
TypeError: Cannot read properties of undefined (reading '$_root')
What result did you expect?
no error
The text was updated successfully, but these errors were encountered: