csstree / csstree/validator

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

Open
#30 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
73
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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.**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.