Closed cascornelissen closed 1 year ago
I had the same difficulty. For now, I use react-datepicker@^3.0.0 (still an upgrade from where I was).
I forked this project and added the following within test>index.test.js. The first test fails with the above error; the second one succeeds.
{ name: "handle nested global in not selectors", input: ":not(:global .foo, :global .baz) {}", expected: ":not(.foo, .baz) {}", }, { name: "handle nested global in not selectors with parens", input: ":not(:global(.foo), :global(.baz)) {}", expected: ":not(.foo, .baz) {}", },
I'm trying to use a dependency (
react-datepicker
) that contains styles that can be simplified to the following:Changing the selector to the following resolves the error:
It seems related to the combination of
:global
and:not
with a comma-separated list because the following works as well:Stacktrace of the error: