withastro/astro

Style missing when path case differs

Open

#14013 opened on Jun 25, 2025

View on GitHub
 (5 comments) (0 reactions) (1 assignee)TypeScript (59,282 stars) (3,444 forks)batch import
- P3: minor bugfeat: devgood first issue

Description

Astro Info

Astro                    v5.10.1
Node                     v22.16.0
System                   Windows (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

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

No response

Describe the Bug

Steps to reproduce:

  1. Create a new project with minimal template (Path: D:\dev\astro-demo)

  2. Edit src/pages/index.astro, insert some style at bottom:

    <style>h1 { color: orange; }</style>
    
  3. Open a terminal and change path to d:\dev\astro-demo (note here)

  4. Run npm run dev and see in browser

What's the expected result?

h1 should be orange, but not. Then change path to case correct path, it becomes normal.

Link to Minimal Reproducible Example

https://stackblitz.com/abcd1234

Participation

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

Contributor guide