Skip to content

Conversation

@Wxh16144
Copy link

@Wxh16144 Wxh16144 commented Dec 3, 2024

I'd like to report an issue (though I'm not entirely sure whether it's a bug or just user error).

I found an issue report on ant-design/ant-design#51867.

After investigating, I traced it down to stylis having problems with parsing the @layer query.

Here's a minimal example:

import { compile, serialize, stringify } from "stylis"

serialize(compile(`@layer base{}`), stringify) // should return `@layer base{}`

The expected output is @layer base{}, but it actually returns @layer base, missing the {} part.

I also tested @emotion/styled, and it works as expected.

image

It seems like an edge case, and I believe it's a bug.

Thanks for your time. I hope this gets resolved soon.

@Wxh16144
Copy link
Author

Wxh16144 commented Jun 3, 2025

Are there any updates? If this is as expected, please close it in a timely manner.

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 this pull request may close these issues.

1 participant