Skip to content

Error.captureStackTrace can't be used in all browser builds #2167

@bradleat

Description

@bradleat

Context

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

Joi.string().email().lowercase()

Which result you had ?

Error.captureStackTrace is not a function

What did you expect ?

The schema to build successfully or an error to be thrown explaining why. In this case apparently Joi is not shipping the tld list with browsers anymore. So the schema build fails.

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions