Skip to content

CSS Modules and prefetch load styles in wrong order #12445

@standy

Description

@standy

Bug report

Using composes in CSS modules leads to loading css in the wrong order after prefetching.

To Reproduce

Here is a minimal reproducible example:
https://github.com/standy/next-css-modules-error

Screenshots

Watch GIF

System information

  • OS: Windows
  • Browser: Chrome
  • Version of Next.js: noticed after updating from 9.2.1 to 9.3.6
  • Version of Node.js: 13.12.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions