# Hot-Proxy scheint die Custom Fonts nicht zu erkennen. Wahrscheinlich ein Webpack Problem.

**URL:** https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729
**Category:** Programmierung
**Created:** [17. Juni 2020 um 09:37 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729 "2020-06-17T09:37:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hillebrandlukas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/hillebrandlukas/32/10506_2.png) [@hillebrandlukas](https://forum.shopware.com/u/hillebrandlukas)
#### Post date: [17. Juni 2020 um 09:37 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729/1 "2020-06-17T09:37:16Z")

</div>

&nbsp;ℹ Compiling Shopware 6 Storefront  
&nbsp; &nbsp; &nbsp; &nbsp; ✔ Shopware 6 Storefront: Compiled with some errors in 1.33s  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ERROR &nbsp;Failed to compile with 1&nbsp;error  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; These relative modules were not found:  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; \* …/…/…/bundles/CUSTOM/fonts/OpenSans-Bold.ttf in ./node\_modules/css-loader/dist/cjs.js??ref–8-1!./node\_modules/postcss-loader/src??ref–8-2!./node\_modules/sass-loader/lib/loader.js??ref–8-3!/Users/lukashillebrand/Sites/kohla/var/theme-entry.scss  
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp;

---

<div class="post-metadata">

### Author: ![dupp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/dupp/32/7715_2.png) [@dupp](https://forum.shopware.com/u/dupp)
#### Post date: [13. November 2020 um 07:08 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729/2 "2020-11-13T07:08:22Z")

</div>

Ich muss mich hier mal einhaken - auch wir haben das Problem, dass Webpack beispielsweise im aktuellen production-template mit **bin/watch-storefront.sh** relative Pfade bemängelt und **bin/console theme:compile** nicht.&nbsp;

&nbsp;

Gibt es hier mittlerweile eine Lösung?  
&nbsp;

Das Problem scheinen ja mehrere zu haben:&nbsp;

> **[Theme compile nach jeder scss Änderung aufrufen?](https://forum.shopware.com/discussion/comment/255395/#Comment_255395)**
>
> Bei mir findet er relative Pfade nicht - mit bin/console theme:compile gehts:    \> sw-next-storefront@1.0.0 hot /home/vagrant/shopware-dev/vendor/shopware/platform/src/Storefront/Resources \> NODE\_ENV=development MODE=hot...

[https://forum.shopware.com/discussion/comment/267944/#Comment\_267944](https://forum.shopware.com/discussion/comment/267944/#Comment_267944)

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [13. November 2020 um 11:12 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729/3 "2020-11-13T11:12:26Z")

</div>

Siehe (~ ab 2 Min.)&nbsp;[Debugging storefront javascript errors (Developer Tutorial)](https://www.youtube.com/watch?v=raLBeoS7TtE&t=19s)

---

<div class="post-metadata">

### Author: ![shinroh](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shinroh](https://forum.shopware.com/u/shinroh)
#### Post date: [31. Mai 2021 um 10:39 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729/4 "2021-05-31T10:39:11Z")

</div>

Das ist definitiv keine Lösung.  
Denn schon beim starten des hot-proxy behindert es den compiler aufgrund dieser Fehlermeldung aus dem Eingangspost.

Ich habe noch keine Lösung hier im Forum, auf Stackoverflow oder selbst gefunden.

Warum ignoriert Shopware dieses Problem?  
Ich kann mir nicht vorstellen dass nur ein Bruchteil versucht assets einzubinden und das hot module für die Entwicklung nutzt.

---

<div class="post-metadata">

### Author: ![shinroh](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@shinroh](https://forum.shopware.com/u/shinroh)
#### Post date: [31. Mai 2021 um 11:13 UTC](https://forum.shopware.com/t/hot-proxy-scheint-die-custom-fonts-nicht-zu-erkennen-wahrscheinlich-ein-webpack-problem/67729/5 "2021-05-31T11:13:14Z")

</div>

ok ich habe die banale Lösung gerade selbst raus gefunden.  
Wichtig ist ein `/` vor dem asset pfad.

Ich nehme mal das beispiel aus dem Eingangspost.  
Sagen wir du definierst deine `@font-face` in der `base.scss`, dann muss der Pfad so aussehen:  
`url( '/bundles/CUSTOM/fonts/OpenSans-Bold.ttf' )`

Dann funktioniert es sowohl mit build, als auch mit hot-proxy
