Open arthur-ditegra opened 2 weeks ago
what did you specified in the plugin as compatiblity for shopware version? By default it takes the oldest shopware version to build it with could break it
Thanks for the reply @shyim.
This is in our compose.json:
"shopware/core": "~6.6.0",
"shopware/storefront": "~6.6.0"
This means the CLI tool will use SW 6.6.0. What we found out in the docs.
For this reason, we fixed the used CLI version in our Pipeline to the current Shopware version:
- name: Install shopware-cli
uses: FriendsOfShopware/shopware-cli-action@v1
with:
version: ${{ env.SHOPWARE_CLI_VERSION }}
Some additional information: We use the GitHub Actions version of the CLI tool.
PS.: I hope you will find a good replacement name for shopware-cli
;)
Can you maybe provide the zip file of the plugin?
Yes, sure, I got the permission to do so. Can I DM you with the ZIP in Slack or via E-Mail?
yes slack is fine :)
PHP Version
8.1
Shopware Version
6.5.8.10
Plugin Version
0.4.54
Actual behaviour
The Problem happens when installing the Plugin in an excising or newly created Shopware system. In this example, we override the off canvas cart:
PluginManager.override('OffCanvasCart', OverOffcanvasCart, '[data-offcanvas-cart]');
An Error is thrown when the packet part reacheso = l.Z.serialize(t);
l
should be the off canvas cart or an Object. I am not sure there. This is not the first time it has happened, somehow the packet all.js has some wrong Id's set.Expected behaviour
The packed all.js should behave the same when packing a Plugins JavaScript into an all.js file.
Steps to Reproduce?
For this example, you can use this:
main.js
test-offcanvas-cart.plugin.js.js
I hope this is enough information to reproduce.