shopware icon indicating copy to clipboard operation
shopware copied to clipboard

watch storefront doesn't work correctly

Open Heddy147 opened this issue 10 months ago • 4 comments

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.

Heddy147 avatar Apr 10 '24 05:04 Heddy147

Same problem here... Works when just building but it seems the proxy server doesn't serve the compiled .js file correctly

arv-asommer avatar Apr 15 '24 13:04 arv-asommer

can you test this? https://github.com/shopware/recipes/commit/cd9c6cda708c38d8af0df62c886d08f1805ec2a7

shyim avatar Apr 16 '24 14:04 shyim

@shyim thx - did the trick!

nicoanders avatar Apr 16 '24 15:04 nicoanders