-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempted import error: 'validate' is not exported from 'csstree-validator'. #30
Comments
Same issue, using
if using
|
@prathamesh-bigpi if you are using webpack 4, this may help you(used to work for us before an upgrade) |
btw your solution does not work for me neither :( |
Same issue here. It doesn't even work when I use
|
I have installed
"csstree-validator": "^3.0.0",
version and imported in react applicationimport { 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.
The text was updated successfully, but these errors were encountered: