# Fehler beim Theme Watcher / Hot Reload von Shopware 6

**URL:** <https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547>\
**Category:** Programmierung\
**Tags:** programming, themes--design\
**Created:** [18. März 2022 um 13:48 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547 "2022-03-18T13:48:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nils2](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/nils2/32/16516_2.png) [@nils2](https://forum.shopware.com/u/nils2)\
**Post date:** [18. März 2022 um 13:48 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/1 "2022-03-18T13:48:24Z")

</div>

Hallo zusammen,

ich habe leider ein Problem mit dem Hot Reload von Shopware 6.

Sobald ich im Hauptverzeichis bin/watch-storefront ausführe, bekomme ich den folgenden Fehler:

[![](https://img.joshua-gerke.de/u/ufxVQIIhTc-pBoHFwCZv3g/mFVxl9TCRI.png) ](https://img.joshua-gerke.de/u/ufxVQIIhTc-pBoHFwCZv3g/mFVxl9TCRI.png)

Nochmal als Text:

```bash
Start theme compilation

 Compiling theme for sales channel for : dfe51958c14742b392ed3bb3cefde903

 ! [NOTE] Took 6.787597 seconds

 Compiling theme for sales channel for : 6b263f89abe24f94a287638bb66b94fc

 ! [NOTE] Took 6.197231 seconds

 Compiling theme for sales channel for : f8cbcc5ebad342fdb712d8129cdfa3d7

 ! [NOTE] Took 6.599494 seconds

> sw-next-storefront@1.0.0 hot-proxy /var/www/html/vendor/shopware/storefront/Resources/app/storefront
> NODE_ENV=development MODE=hot node ./build/start-hot-reload.js

(node:2095) UnhandledPromiseRejectionWarning: Error: Cannot find module 'webpack'
Require stack:
- /var/www/html/vendor/shopware/storefront/Resources/app/storefront/build/live-reload-server/index.js
- /var/www/html/vendor/shopware/storefront/Resources/app/storefront/build/start-hot-reload.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
    at Function.Module._load (internal/modules/cjs/loader.js:667:27)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at /var/www/html/vendor/shopware/storefront/Resources/app/storefront/build/live-reload-server/index.js:7:25
    at new Promise (<anonymous>)
    at createLiveReloadServer (/var/www/html/vendor/shopware/storefront/Resources/app/storefront/build/live-reload-server/index.js:6:12)
    at Object.<anonymous> (/var/www/html/vendor/shopware/storefront/Resources/app/storefront/build/start-hot-reload.js:5:16)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
(node:2095) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:2095) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
www-data@8a547c5ad9d7:~/html$ bin/console theme:build

```

Kann mir da jemand weiterhelfen?

Beste Grüße,

Nils

---

<div class="post-metadata">

**Author:** ![mlo](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@mlo](https://forum.shopware.com/u/mlo)\
**Post date:** [24. April 2022 um 14:57 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/2 "2022-04-24T14:57:11Z")

</div>

Gleiches Problem hier. Shopware normal installiert. (Nicht die dev Methode mit platform clone)  
Erhalte den gleichen Fehler.

---

<div class="post-metadata">

**Author:** ![fredfies](https://avatars.discourse-cdn.com/v4/letter/f/ba9def/32.png) [@fredfies](https://forum.shopware.com/u/fredfies)\
**Post date:** [16. Mai 2022 um 09:00 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/3 "2022-05-16T09:00:47Z")

</div>

Hier ebenso. Habt ihr in der Zwischenzeit eine Lösung gefunden? @nils2@mlo

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [16. Mai 2022 um 10:24 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/4 "2022-05-16T10:24:30Z")

</div>

Die Fehlermeldung sagt aus, dass Webpack auf dem System nicht installiert ist.

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [8. November 2022 um 21:58 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/5 "2022-11-08T21:58:33Z")

</div>

Hatte eben das selbe Problem.  
Mit Node JS 16.10.0 und NPM 8.0 funktioniert es. Nutze nvm um deine Node Version zu wechseln und starte erstmal mit den Commands: build-administrator und build-storefront. Darauf hin sollten die Watcher Befehle laufen.

---

<div class="post-metadata">

**Author:** ![leo.haerdle](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@leo.haerdle](https://forum.shopware.com/u/leo.haerdle)\
**Post date:** [16. März 2023 um 10:21 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/6 "2023-03-16T10:21:21Z")

</div>

Hey, ich stehe vor dem selben Problem.  
Ich arbeite in Docker auf meinem M1 Mac und versuche es gerade mit deinen Node und NPM Versionen. Der build-administration command schlägt allerdings fehl mit folgendem Fehler:

```auto
pm ERR! code 1
npm ERR! path /srv/www/htdocs/shop/vendor/shopware/administration/Resources/app/administration/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js
npm ERR! The chromium binary is not available for arm64.
npm ERR! If you are on Ubuntu, you can install with: 
npm ERR! 
npm ERR! sudo apt install chromium
npm ERR! 
npm ERR! 
npm ERR! sudo apt install chromium-browser
npm ERR! 
npm ERR! /srv/www/htdocs/shop/vendor/shopware/administration/Resources/app/administration/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119
npm ERR! throw new Error();
npm ERR! ^
npm ERR! 
npm ERR! Error
npm ERR! at /srv/www/htdocs/shop/vendor/shopware/administration/Resources/app/administration/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119:27
npm ERR! at FSReqCallback.oncomplete (node:fs:198:21)

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-16T10_19_42_692Z-debug.log

```

Und die entsprechenden Chromium Pakete lassen sich aber auch nicht installieren, auf Grund von amd64 / arm64 Architektur-Problemen.  
Jemand hier eine Idee, wie man da weiterkommt?

---

<div class="post-metadata">

**Author:** ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)\
**Post date:** [16. März 2023 um 11:47 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/7 "2023-03-16T11:47:30Z")

</div>

Hallo,

vielleicht hilft das hier weiter:

> **[Fixing "The chromium binary is not available for arm64" - Tim Broddin](https://broddin.be/2022/09/19/fixing-the-chromium-binary-is-not-available-for-arm64/)**
>
> When installing Puppeteer on your new shiny M1/M2 powered Mac, you might come across this error message, when trying to install the Puppeteer NPM package: Fear not, there is an easy fix! Just install Chromium manually with HomeBrew: After installing...

Viele Grüße

---

<div class="post-metadata">

**Author:** ![leo.haerdle](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@leo.haerdle](https://forum.shopware.com/u/leo.haerdle)\
**Post date:** [16. März 2023 um 13:01 UTC](https://forum.shopware.com/t/fehler-beim-theme-watcher-hot-reload-von-shopware-6/93547/8 "2023-03-16T13:01:32Z")

</div>

Guter Hinweis, danke.  
HomeBrew kam nicht in Frage da innerhalb von ubuntu docker image, aber selbst installieren war der Trick.  
Am Ende hats ein vergessenes sudo apt-get update gerichtet…  
Manchmal ist es auch einfach was dummes einfaches ;).
