Next.js: How to use css-modules and import styles at the same time?

Created on 6 Sep 2019  Â·  2Comments  Â·  Source: vercel/next.js

I started css-modules in the next.js project, but it caused the style of the third-party components I introduced in the jsx via import to fail. Since these styles are also compiled because css-modules is turned on, how do I use css-modules and import styles at the same time? Or how do I configure css-modules to ignore compiled import styles?
I look forward to and thank you for your reply!

All 2 comments

I don't konw

Please follow the issue template in the future.

https://github.com/zeit/next.js/issues/new/choose

https://github.com/zeit/next.js/issues/new?template=8.Question_about_next.md

# Question about Next.js

GitHub Issues are reserved for Bug reports and Feature requests. The best place to get your question answered is to post it on https://spectrum.chat/next-js.

There's an open RFC to allow this: https://github.com/zeit/next.js/issues/8626

Was this page helpful?
0 / 5 - 0 ratings

Related issues

flybayer picture flybayer  Â·  3Comments

irrigator picture irrigator  Â·  3Comments

swrdfish picture swrdfish  Â·  3Comments

olifante picture olifante  Â·  3Comments

knipferrc picture knipferrc  Â·  3Comments