Skip to content

CSS styles missing on localized i18n builds - v3.8 + Docusaurus Faster + Rspack persistent cache #11240

Closed

Description

@EurFelux

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

It's about docs website.

By default, it's in English, and everything looks fine. However, once switched to another language, the entire website loses its styling.

Image

Image

Reproducible demo

No response

Steps to reproduce

  1. access docs website
  2. switch to other languages except English

Expected behavior

Make websites in other languages display properly.

Actual behavior

I don't know, the web console didn't report any errors.

Your environment

  • Environment name and version (e.g. Chrome 89, Node.js 16.4): Arc 1.97.1 (63934), Chromium Engine Version 137.0.7151.69
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS Sequoia 15.5

Self-service

  • I'd be willing to fix this bug myself.

Activity

  1. added
    bug
    status: needs triage
    on Jun 5, 2025
  2. EurFelux commented on Jun 5, 2025

    @EurFelux
    Author

    When I try to switch languages on the home page, it shows:

    Image

  3. slorber commented on Jun 5, 2025

    @slorber
    Collaborator

    Hmmm yes it looks like there's an issue, I think it's a bug in Rspack but need to confirm that thanks

  4. slorber commented on Jun 6, 2025

    @slorber
    Collaborator

    It's a bug in Rspack persistent cache: web-infra-dev/rspack#10599

    This is likely to affect Docusaurus v3.8 i18n sites using Docusaurus Faster.

    I hope we'll find a solution asap.

    In the meantime, sites affected by this problem should rather disable the persistent cache using one of these ways:

    • siteConfig.future.experimental_faster.rspackPersistentCache = false
    • docusaurus clear before docusaurus build
  5. removed
    status: needs triage
    on Jun 6, 2025
  6. changed the title [-]Missing styles when switching languages on the docs website[/-] [+]CSS styles missing on localized i18n site builds - v3.8 + Docusaurus Faster + Rspack persistent cache[/+] on Jun 6, 2025
  7. changed the title [-]CSS styles missing on localized i18n site builds - v3.8 + Docusaurus Faster + Rspack persistent cache[/-] [+]CSS styles missing on localized i18n builds - v3.8 + Docusaurus Faster + Rspack persistent cache[/+] on Jun 6, 2025
  8. slorber commented on Jun 24, 2025

    @slorber
    Collaborator

    From what I see, this bug is fixed in Rsack v1.4

    If you are affected, you can use the newer version today already, with npm "overrides" and Yarn "resolutions"

      "resolutions": {
        "@rspack/core": "1.4.0-rc.0"
      },
  9. EurFelux commented on Jun 25, 2025

    @EurFelux
    Author

    Thank You for Your Help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions