Skip to content

validator does not provide an export named 'default'  #1214

Open
@Maxreglez

Description

@Maxreglez

I use the validator in my TypeScript project. That works and everything is fine.
But then I want to test my project with karma and got this error message SyntaxError: The requested module '../../../../../../node_modules/validator/index.js' does not provide an export named 'default' Is there anything I could do or is it a mistake?

i imported it like this
import validator from "validator";
Version of validator is 12.1.0
Karma Version 4.4.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions