Skip to content

Unable to load font files referenced in a node_modules CSS file #9148

Closed
@Sak32009

Description

@Sak32009

Describe the bug

From version v2.9.13 up to the latest, if you try to import @mdi/font the icon is not displayed.
In build mode everything works fine, but in dev mode it doesn't.

http://127.0.0.1:5173/@fs/C:/Users/sak32/Documents/GitHub/Vite/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2?v=6.9.96

If you try to open the url directly it doesn't work, if you remove the query string it works.

I think it's his fault: e109d64

Reproduction

https://stackblitz.com/edit/vitejs-vite-x9um9q?file=main.js

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (12) x64 AMD Ryzen 5 2600 Six-Core Processor
    Memory: 7.58 GB / 15.93 GB
  Binaries:
    Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 3.2.1 - C:\Program Files\nodejs\yarn.CMD
    npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.49)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    vite: ^3.0.0 => 3.0.0

Used Package Manager

yarn

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)regressionThe issue only appears after a new release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions