Skip to content

corrupted and missing assets in built vite app ('Failed to decode downloaded font')Β #13286

Closed
nuxt/framework
#2930
@danielroe

Description

Have same issue image


  • Operating System: Darwin
  • Node Version: v16.13.2
  • Nuxt Version: 3.0.0-27383920.81ee59c
  • Package Manager: npm@8.1.2
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

The last release 3.0.0-27383920.81ee59c fixed the problem with images in /assets loaded from css url() now loaded correctly, but remains an issue with fonts loaded from /assets in css @font-face, i attach a screenshot of it: (Failed to decode downloaded font: / Failed to load response data)

Fonts loaded as:

/* assets/css/fonts.css */
@font-face {
  font-family: 'Noto-Sans';
  src: url('assets/fonts/noto-sans/NotoSans-Regular.ttf') format('truetype');
}

failed-to-decode-font

_Originally posted by @arb85 in #13250

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions