sveltejs / kit

web development, streamlined
https://svelte.dev/docs/kit
MIT License
18.63k stars 1.92k forks source link

@fontsource/roboto not working after upgrading from vite 4 to vite 5 #11121

Closed huseeiin closed 11 months ago

huseeiin commented 11 months ago

Describe the bug

roboto-latin-500-normal.8Xcd2lzs.woff2:1

    Failed to load resource: the server responded with a status of 404 (Not Found)

roboto-latin-500-normal.3Jvq4Vhd.woff:1

    Failed to load resource: the server responded with a status of 404 (Not Found)

Reproduction

in +layout.svelte:

import '@fontsource/roboto/500.css'

Logs

No response

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
    Memory: 2.47 GB / 3.78 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
    npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
    pnpm: 8.10.5 - ~/.bun/bin/pnpm
    bun: 1.0.13 - ~/.bun/bin/bun
  npmPackages:
    @sveltejs/adapter-node: ^1.3.1 => 1.3.1
    @sveltejs/kit: ^1.27.6 => 1.27.6
    svelte: ^4.2.7 => 4.2.7
    vite: ^5.0.2 => 5.0.2

Severity

serious, but I can work around it

Additional Information

Serious but i can't work around it without using google fonts cdn :D

huseeiin commented 11 months ago

related to https://github.com/sveltejs/kit/issues/11062

eltigerchino commented 11 months ago

Duplicate of https://github.com/sveltejs/kit/issues/11085