Skip to content
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

Cannot use nested rules #403

Open
firdiansyah26 opened this issue Jul 22, 2022 · 2 comments
Open

Cannot use nested rules #403

firdiansyah26 opened this issue Jul 22, 2022 · 2 comments

Comments

@firdiansyah26
Copy link

firdiansyah26 commented Jul 22, 2022

Hi, I want to ask about nested rules in CSS. I found the error like this [vite] Internal server error: Cannot read properties of undefined (reading 'match'). Maybe someone here has found this problem or maybe it has been solved? Please tell me, thank you!
*the following code is an example
image
image

@firdiansyah26 firdiansyah26 changed the title BEM styled issue Cannot use nested rules Jul 25, 2022
@filoscoder
Copy link

filoscoder commented Feb 4, 2023

This is not supported by juice (I think)
Juice relies on a library called mensch, and uses the method parse to handle the CSS string. And this has no support in it.

Maybe we can catch the CSS string with & references before mensch.parse and format it correctly. What do you think @jrit ?

@filoscoder
Copy link

I open a PR for this "bug". Please check it out @jrit

#442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants