/home/jing/code/demo/node_modules/@hapi/address/src/domain.ts:145
} else if (tlds.deny.has(tld)) {
^
TypeError: Cannot read properties of undefined (reading 'has')
at analyzeDomain (/home/jing/code/demo/node_modules/@hapi/address/src/domain.ts:145:30)
at validateEmail (/home/jing/code/demo/node_modules/@hapi/address/src/email.ts:90:56)
at isEmailValid (/home/jing/code/demo/node_modules/@hapi/address/src/email.ts:39:13)
at Object.validate (/home/jing/code/demo/node_modules/joi/lib/types/string.js:296:26)
at Object.internals.rules (/home/jing/code/demo/node_modules/joi/lib/validator.js:397:33)
at Object.exports.validate (/home/jing/code/demo/node_modules/joi/lib/validator.js:353:22)
at Object.internals.entry (/home/jing/code/demo/node_modules/joi/lib/validator.js:145:28)
at Object.exports.entry (/home/jing/code/demo/node_modules/joi/lib/validator.js:27:30)
at internals.Base.validate (/home/jing/code/demo/node_modules/joi/lib/base.js:548:26)
at /home/jing/code/demo/joi.ts:8:8
Support plan
Context
What are you trying to achieve or the steps to reproduce?
What was the result you got?
What result did you expect?
undefined
will be betterThere are no problems in the v17.8.2