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

vite:css warnings on build #15

Open
simontol opened this issue Jul 12, 2023 · 1 comment
Open

vite:css warnings on build #15

simontol opened this issue Jul 12, 2023 · 1 comment

Comments

@simontol
Copy link

simontol commented Jul 12, 2023

When building ckeditor5 with vite I have a lot of warnings:

transforming (3476) ../node_modules/@ckeditor/ckeditor5-image/src/imageinsertviaurl.js[vite:css] Complex selectors in ':is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after' can not be transformed to an equivalent selector without ':is()'.
91 |                    }
92 |  
93 |  :is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after {
   |   ^
94 |                                    display: none;
95 |                            }
[vite:css] Complex selectors in ':is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled):not(.does-not-exist))::after' can not be transformed to an equivalent selector without ':is()'.
91 |                    }
92 |  
93 |  :is(.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover))::after {
   |   ^
94 |                                    display: none;
95 |                            }

and so on...

think that the relevant part is:
Complex selectors in ':is(...)::after' can not be transformed to an equivalent selector without ':is()'.

Vitejs 4.4.2
"@vitejs/plugin-react-swc": "^3.3.2"
"@ckeditor/vite-plugin-ckeditor5": "^0.1.3"

Is there anything I can do to get rid of this warnings?
Thanks

@LukaszGudel
Copy link
Collaborator

Hi @simontol,
we are unable to reproduce your issue. To investigate this issue further we would need the contents of your package.json and vite.config.js. Also, it would be incredibly helpful if you are able to provide a sample repository/project where this issue can be reproduced.

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

No branches or pull requests

2 participants