You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been opened again since the original one has been closed for "no activities" while last comment was posted 3 months ago. The issue still exists.
Expected Behavior
As far as I understand, the above selector does contain a "pure selector", so it should work. However, apparently, since hover is nested in this example, it isn't recognized as a "pure selector".
I could not reproduce this using the latest version of Next.js. It should work with any version above Next.js 9 (which I found in your reproduction). Please upgrade. 🙏
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Run
next info
(available from version 12.0.8 and up)What version of Next.js are you using?
12.0.8
What version of Node.js are you using?
14.18.3
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
CssSyntax error: Selector "&:hover" is not pure (pure selectors must contain at least one local class or id) (4:3)
The above repository is based on following the examples in the documentation:
https://nextjs.org/docs/basic-features/built-in-css-support#adding-component-level-css
This issue has been opened again since the original one has been closed for "no activities" while last comment was posted 3 months ago. The issue still exists.
Expected Behavior
As far as I understand, the above selector does contain a "pure selector", so it should work. However, apparently, since hover is nested in this example, it isn't recognized as a "pure selector".
To Reproduce
https://github.com/andrasna/hello-next-css-module-issue
The text was updated successfully, but these errors were encountered: