-
Notifications
You must be signed in to change notification settings - Fork 10
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
next.js css-modules styles omitted from resulting class names #10
Comments
I have the very same problem - why do we need |
Encourntered the same issue with
This is a major road block for adopting linaria with Nest.js when built-in css-modules is broken. |
+1. As a workaround, I have a local version of This line was added with #5. I wonder if its inclusion is even strictly necessary to fix the bug. If it is, maybe |
Hi @Mistereo,
when using the built-in css-modules from next.js together with next-linaria the css-modules classnames are stripped away from the final html. (e.g.
import styles from "../styles/some.module.css
and then use it likeclassName={styles.someClassname}
) This was working ok with version 0.10.Affected Version: 0.11 and 1.0.1-beta
I tracked the problem down to the rules that were added in 0.11 specifically
rule.options.modules.exportOnlyLocals = false
seems to be the problem.
The text was updated successfully, but these errors were encountered: