withastro/astro

Style missing when path case differs

Fermée

#14 013 ouverte le 25 juin 2025

 (5 commentaires) (0 réaction) (1 personne assignée)TypeScript (3 732 forks)batch import
- P3: minor bugfeat: devgood first issue

Métriques du dépôt

Stars
 (61 918 étoiles)
Métriques de merge PR
 (Merge moyen 4j 23h) (197 PRs mergées en 30 j)

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.

Guide contributeur