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

Problem with css modules when one component using several times in one page #14766

Closed
AndreyFedarovich opened this issue Jul 1, 2020 · 3 comments

Comments

@AndreyFedarovich
Copy link

Bug report

Problem with css modules when one component using several times in one page

When one component used several times in one page, in chrome dev tools we can see that styles was generated several times also (only for production mode)

To Reproduce

Steps to reproduce the behavior:

  1. Use css-modules
  2. Use one component several times per page

Expected behavior

css generated only one time, like for development mode

Screenshots

Screen Shot 2020-07-01 at 2 32 00 PM

System information

  • OS: [macOS]
  • all
  • Version of Next.js: 9
  • Version of Node.js: 10
@AndreyFedarovich
Copy link
Author

Found the same issue: #11448. Hope my details can help to fix it

@timneutkens
Copy link
Member

Duplicate of #11448

@timneutkens timneutkens marked this as a duplicate of #11448 Jul 1, 2020
@balazsorban44
Copy link
Member

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 vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants