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

Carbon SCSS mixins can't be used in CSS Modules when Webpack's css-loader is using "pure" modules #7

Open
mattrosno opened this issue Dec 15, 2020 · 0 comments

Comments

@mattrosno
Copy link
Owner

Carbon Gatsby theme MDX components use CSS Modules, that import Carbon mixins. Carbon mixins call reset CSS which throw Next.js errors similar to:

CssSyntax error: Selector "a" is not pure (pure selectors must contain at least one local class or id) (37:0)

vercel/next.js#10475 (comment)

  • I tried updating Next.js PostCSS config with no luck

vercel/next.js#10142 (comment)

  • I could probably override Next.js default Webpack config
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

No branches or pull requests

1 participant