shopware
shopware copied to clipboard
watch storefront doesn't work correctly
PHP Version
8.2
Shopware Version
6.6.1.0
Expected behaviour
- auto reload if something is changed
- in APP_ENV=dev custom plugins should be working
Actual behaviour
- no auto reload, whether dev or prod
If I use dev environment no custom plugins can be loaded. Browser tries to load the JS files but gets a 404 code. In prod environment all plugins are loaded correctly.
How to reproduce
Fresh installation with a fresh created test plugin with command bin/console plugin:create
. Call bin/watch-storefront.sh
.
It does not matter whether locally, with devenv or via dockware. They all have the same problem.
We found the following existing issues which may help or are related to your topic:
- watch-storefront.sh only works for first theme
- PSH command "storefront:watch" is still present
- fix: Compatibility to use the storefront watcher with an non empty URI
- Shopware watch-administration.sh not working after remove shopware/storefront package
- added missing "export STOREFRONT_ASSETS_PORT" on watch-storefront.sh
- Missing "export STOREFRONT_ASSETS_PORT" on watch-storefront.sh
- Storefront-SCSS-Watcher does not work with multiple Storefront sales channels
- Watcher is not reflecting changes
- NEXT-00000 - Improve storefront webpack watch twig
Same problem here... Works when just building but it seems the proxy server doesn't serve the compiled .js file correctly
can you test this? https://github.com/shopware/recipes/commit/cd9c6cda708c38d8af0df62c886d08f1805ec2a7
@shyim thx - did the trick!