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
used with (hapi, standalone, ...): as custom koa middleware or standalone
any other relevant information:
What are you trying to achieve or the steps to reproduce ?
Simply importing any of joi types produces an error. It started happening with v11. this seems to be undefined.
import{string,number,any,object}from'joi'
If I import Joi from 'joi' instead, everything works again.
Which result you had ?
...\node_modules\joi\lib\index.js:28
if (this._defaults) {
^
TypeError: Cannot read property '_defaults' of undefined
at internals.applyDefaults (...\node_modules\joi\lib\index.js:28:13)
at root.object (...\node_modules\joi\lib\index.js:102:48)
What did you expect ?
Expected import to work as previous version.
The text was updated successfully, but these errors were encountered:
Context
What are you trying to achieve or the steps to reproduce ?
Simply importing any of joi types produces an error. It started happening with v11.
this
seems to be undefined.If I
import Joi from 'joi'
instead, everything works again.Which result you had ?
What did you expect ?
Expected import to work as previous version.
The text was updated successfully, but these errors were encountered: