Skip to content

Unable to load UnoCSS style after updating astro from 6.0.8 to 6.1.3 #16204

@ocavue

Description

@ocavue

Astro Info

Astro                    v6.1.3
Vite                     v7.3.1
Node                     v22.22.0
System                   Linux (x64)
Package Manager          pnpm
Output                   static
Adapter                  none
Integrations             @astrojs/preact (v5.0.2)
                         astrobook (v0.12.6)
                         unocss (v66.6.7)

If this issue only occurs in one browser, which browser is a problem?

Chrome

Describe the Bug

After updating astro from 6.0.8 to 6.1.3, I found that the style won't appear anymore.

I've prepared two minimal reproductions:

Steps to reproduce:

  1. Open two links in two browser windows. These two links are the same example but with different Astro versions (6.0.8 and 6.1.3).
  2. Wait for the dev servers to start.
  3. Click "LargeStep" in both windows.
  4. Notice that the styles on the two pages are different.1. Open two links in two browser windows. These two links are the same example but with different astro versions (6.0.8 and 6.1.3)
  5. Wait for the dev servers to start
  6. Click "LargeStep" in both windows
  7. Notice that the styles in two pages are different.
Image

This may or may not be related to the existing issue #16181

What's the expected result?

The UnoCSS styles are loaded as expected.

Link to Minimal Reproducible Example

See description above

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P3: minor bugAn edge case that only affects very specific usage (priority)pkg: astroRelated to the core `astro` package (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions