Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font 404 error when loading css using vite #14327

Closed
tghkuma opened this issue Jul 18, 2022 · 0 comments · Fixed by nuxt/framework#5398
Closed

Font 404 error when loading css using vite #14327

tghkuma opened this issue Jul 18, 2022 · 0 comments · Fixed by nuxt/framework#5398
Assignees

Comments

@tghkuma
Copy link

tghkuma commented Jul 18, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.15.0
  • Nuxt Version: 3.0.0-rc.5
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: modules, css
  • Runtime Modules: bootstrap-vue-3/nuxt
  • Build Modules: -

Reproduction

stackblitz

monorepo package environment

+--package.json
+--packages
   +--app
      +--nuxt.config.ts
      +--package.json
      +--plugins
      |  +--bootstrap-vue-3.client.ts
      +--tsconfig.json

Describe the bug

In a monorepo environment, loading bootstrap-icons.woff2 in bootstrap-icons.css of Bootstrap-Icons gives a 404 error.

This is a Vite v2.9.13 or higher error and has been fixed in v3.0.2. issue nuxt/framework#9148
Please support the latest version.

Additional context

No response

Logs

GEThttps://nuxt-starter-cmkpxb--3000.local-corp.webcontainer.io/_nuxt/@fs/home/projects/nuxt-starter-cmkpxb/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2?8d200481aa7f02a2d63a331fc782cfaf
[HTTP/1.1 404 Not Found 0ms]

downloadable font: download failed (font-family: "bootstrap-icons" style:normal weight:400 stretch:100 src index:0): status=2147746065 source: https://nuxt-starter-cmkpxb--3000.local-corp.webcontainer.io/_nuxt/@fs/home/projects/nuxt-starter-cmkpxb/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2?8d200481aa7f02a2d63a331fc782cfaf 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants