Skip to content

TypeError: undefined is not a constructor (evaluating 'email.normalize('NFC')') #32

@rokoroku

Description

@rokoroku
TypeError: undefined is not a constructor (evaluating 'email.normalize('NFC')')

Caused by calling str.normalize() in the isemail module

String.prototype.normalize() is not supported in every browsers.
Adding polyfill like unorm or just adding mock function returns itself fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions