# \[ Font loader \] - Error 404 not found while loading fonts

**URL:** <https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346>\
**Category:** Questions\
**Tags:** vite, loaders\
**Created:** [July 27, 2023, 5:14pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346 "2023-07-27T17:14:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sousadiego11](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sousadiego11/32/31648_2.png) [@sousadiego11](https://discourse.threejs.org/u/sousadiego11)\
**Post date:** [July 27, 2023, 5:14pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346/1 "2023-07-27T17:14:43Z")

</div>

Structure of the code i’m running:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/8/4/84347171cdf43fc21af3ed879d259b722ae0f966.png)  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/7/4/749bef0b699841b9c050fad2ae327e51d90b8673.jpeg)

---

<div class="post-metadata">

**Author:** ![anidivr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/anidivr/32/32924_2.png) [@anidivr](https://discourse.threejs.org/u/anidivr)\
**Post date:** [July 27, 2023, 5:17pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346/2 "2023-07-27T17:17:58Z")

</div>

try removing …/. Just use “assets/astronaut\_regular.json” or “./assets/astronaut\_regular.json”

---

<div class="post-metadata">

**Author:** ![sousadiego11](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sousadiego11/32/31648_2.png) [@sousadiego11](https://discourse.threejs.org/u/sousadiego11)\
**Post date:** [July 27, 2023, 5:22pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346/3 "2023-07-27T17:22:05Z")

</div>

no results with that either

---

<div class="post-metadata">

**Author:** ![PavelBoytchev](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pavelboytchev/32/38639_2.png) [@PavelBoytchev](https://discourse.threejs.org/u/PavelBoytchev)\
**Post date:** [July 27, 2023, 5:42pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346/4 "2023-07-27T17:42:01Z")

</div>

I do not use such type of workflow, but I have a vague recollection that others suggest to put such files in the `public` folder, because it is seen by the end user.

As a test, if you try to open this URL `http://localhost:5173/assets/astronaut_regular.json` directly from the browser, does it work?

---

<div class="post-metadata">

**Author:** ![sousadiego11](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/sousadiego11/32/31648_2.png) [@sousadiego11](https://discourse.threejs.org/u/sousadiego11)\
**Post date:** [July 27, 2023, 6:01pm UTC](https://discourse.threejs.org/t/font-loader-error-404-not-found-while-loading-fonts/54346/5 "2023-07-27T18:01:18Z")

</div>

> [@PavelBoytchev](#):
>
> [http://localhost:5173/assets/astronaut\_regular.json](http://localhost:5173/assets/astronaut_regular.json)

Perfectly pointed! It does not appear, but at the public folder i loads correctly. thanks!
