Skip to content

Attempted import error: 'validate' is not exported from 'csstree-validator'. #30

@prathamesh-bigpi

Description

@prathamesh-bigpi

I have installed "csstree-validator": "^3.0.0", version and imported in react application
import { validate } from 'csstree-validator';
Trying to run it but getting following error
Attempted import error: 'validate' is not exported from 'csstree-validator'.
csstree_validator__WEBPACK_IMPORTED_MODULE_13__.default.validate is not a function

After changing import statement to import { validate } from 'csstree-validator/lib/validate'; the code is working fine. Is this a known issue ?

Note: version 2.0.1 is working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions