SwagPayPalPlugin und build-storefront.sh

Hallo Shopware Forum,
Wir haben eine lokale Entwicklungsumgebung mit einem Docker Setup. Momentan gibt es dort ein Problem nach dem Update auf 6.4.11.1 unseres Shops.
Die build-storefront.sh gibt den folgenden Fehler

"ERROR in /var/www/html/custom/plugins/SwagPayPal/src/Resources/app/storefront/src/swag-paypal.abstract-buttons.js
Module not found: Error: Can’t resolve ‚@paypal/paypal-js‘ in ‚/var/www/html/custom/plugins/SwagPayPal/src/Resources/app/storefront/src‘
"
hat jemand eine idee was das Problem ist?

Habe das gleiche Problem in der Shopware Version 6.4.8.1 in einer Nicht-Docker Umgebung.
PayPal Plug-In ist auf dem neusten Stand (Version 5.1.1.).
Muss man Shopware vollständig updaten, dass der Fehler gefixed wird oder ist eine andere Lösung bekannt?

Wenn man die watch-storefront.sh ausführt, bekommt man an sich die selbe Meldung anders formuliert:
"ERROR Failed to compile with 1 errors

This dependency was not found:

  • @paypal/paypal-js in /var/www/html/sw6-live/custom/plugins/SwagPayPal/src/Resources/app/storefront/src/swag-paypal.abstract-buttons.js

To install it, you can run: npm install --save @paypal/paypal-js"

Einzige Option bislang ist, ohne aktiviertes PayPal Plug-In die Storefront zu bauen, aber das ist keine optimale Lösung.

Keiner eine Idee was das für eine Ursache haben kann?

Hab das Problem auch jedesmal, wenn ich auto deploy durchziehen will.
Lösung:

cd custom/plugins/SwagPayPal/src/Resources/app/storefront && npm install

Dann sind die dependencies da und z.B. ./bin/build-storefront.sh klappt.

6 „Gefällt mir“

Vielen Dank!! hat bei mir auch geklappt. Wenn das Paypal Plugin mit composer installiert wurde muss man logischerweise in den Ordner „vendor/store.shopware.com/swagpaypal/src/Resources/app/storefront“ und dort dann „npm i“ ausführen. klappt auch

2 „Gefällt mir“

Danke für die zusätzliche Info. Hätte ich nicht dran gedacht.