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

@layer declarations not found when using grouped selectors #6882

Closed
ndimatteo opened this issue Jan 4, 2022 · 1 comment · Fixed by #6922
Closed

@layer declarations not found when using grouped selectors #6882

ndimatteo opened this issue Jan 4, 2022 · 1 comment · Fixed by #6922
Assignees

Comments

@ndimatteo
Copy link

What version of Tailwind CSS are you using?
v3.0.9

What build tool (or framework if it abstracts the build tool) are you using?
postcss ^8.3.11, Next.js ^12.0.4

What version of Node.js are you using?
v14.0.0

What browser are you using?
Chrome

What operating system are you using?
macOS

Reproduction URL
https://play.tailwindcss.com/EdpBQBdhBF?file=css

Describe your issue
Hey there! You used to be able to group selectors in an @layer declaration, but now it's throwing an error.

In the reproduction URL try removing the h1, selector and it will work again 😃

@RobinMalfait
Copy link
Contributor

Hey! Thank you for your bug report!
Much appreciated! 🙏

This was indeed working in the older AOT mode, but never worked in JIT mode.

This should be fixed in #6922, and will be available in the next release (probably later today).

You can already try it by using the insiders build npm install tailwindcss@insiders or yarn add tailwindcss@insiders.

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