Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: false.byteLength is not a function #2131

Closed
yevheni opened this issue Sep 20, 2019 · 2 comments
Closed

TypeError: false.byteLength is not a function #2131

yevheni opened this issue Sep 20, 2019 · 2 comments
Assignees
Labels
bug Bug or defect
Milestone

Comments

@yevheni
Copy link

yevheni commented Sep 20, 2019

Context

  • node version: 10.16.3
  • joi version: 16.1.2
  • environment: browser
  • used with: standalone

What are you trying to achieve or the steps to reproduce ?

When I use this:

Joi.string().email({ tlds: false }).required()

Which result you had ?

I get error:

Screenshot 2019-09-20 at 12 19 56

Screenshot 2019-09-20 at 12 19 40

But when I toggle option "ignoreLength" to true, like this:

Joi.string().email({ tlds: false, ignoreLength: true }).required()

All works properly.

I think this issue must be fixed.

P.s.: Thank you so much for Joi. It very much helps 😀

@Marsup Marsup self-assigned this Sep 20, 2019
@Marsup Marsup added the bug Bug or defect label Sep 20, 2019
@Marsup
Copy link
Collaborator

Marsup commented Sep 20, 2019

Fixed in address, pending release. Thanks for the report.

@hueniverse hueniverse added this to the 16.1.3 milestone Sep 20, 2019
@hueniverse hueniverse self-assigned this Sep 20, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants