Open commercewerft opened 1 month ago
Hello @commercewerft ,
Thank you for your message.
The problem is known in 6.0.0 and we have therefore released version 6.0.1. We have removed the 2nd file there.
Yes, but it will be created again with bin/build-storefront.sh and than used twice.
@janteuber so please could you reopen the ticket and test it? As described, this happens with a fresh installed 6.0.1 as mentioned in the title and in the first sentence.
@janteuber ... please reopen
having the same problem overhere:
PayonePayment: v6.0.1
Shopware: 6.5.8.8
using shopware-cli to build assets shopware-cli project storefront-build
Hi! What's the current status of this issue. I have the same problem with the current version (v6.0.1) Shopware (6.5.8.10)
The problem comes from a wrong placed commited file:
if you want, you can apply the patch by composer-patches for a quickfix: https://github.com/PAYONE-GmbH/shopware-6/pull/316.patch We will create a release soon.
After installing 6.0.1 there will be an error: Plugin "PayonePaymentAmazonPayExpressButton" is already registered
Error: Plugin "PayonePaymentAmazonPayExpressButton" is already registered. at h.register (all.js?1718010068:3:17858) at g.register (all.js?1718010068:3:21662) at all.js?1718010068:8:27122 at all.js?1718010068:8:33428 at all.js?1718010068:8:33432
How to reproduce: Install via composer:
composer require store.shopware.com/payonepayment
Then call
bin/build-storefront.sh
After that you will find 2 versions of payone-payment.js in the file-system.One in:
vendor/store.shopware.com/payonepayment/src/Resources/app/storefront/dist/storefront/js/payone-payment.sh
One in:vendor/store.shopware.com/payonepayment/src/Resources/app/storefront/dist/storefront/js/payone-payment/payone-payment.sh
Both will be included in the all.js.
If you delete the second one in
vendor/store.shopware.com/payonepayment/src/Resources/app/storefront/dist/storefront/js/payone-payment/payone-payment.sh
and run again bin/build-storefront.sh, the error will not occur.