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
When using CSS modules along with dynamic routes that involve a parent folder with
square brackets in the name (dynamic urls), the generated CSS class name/ident also contains the folders square brackets making the class name invalid, and therefore preventing the provided styles from being applied.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Describe the bug
When using CSS modules along with dynamic routes that involve a parent folder with
square brackets in the name (dynamic urls), the generated CSS class name/ident also contains the folders square brackets making the class name invalid, and therefore preventing the provided styles from being applied.
For reference, see the relevant code in getCssModuleLocalIdent
Happy to provide a PR if you can give me some guidance on whether to remove, escape, or replace the brackets with an alternative.
To Reproduce
Full repro at https://github.com/maxholman/nextjs-ident-bug
Expected behavior
Generated class names should not contain invalid characters
The text was updated successfully, but these errors were encountered: