paynl / magento2-plugin

The Pay. plugin for Magento 2
https://www.pay.nl
27 stars 31 forks source link

Fix hidden dependency on Magento_Multishipping #177

Closed Stoux closed 1 year ago

Stoux commented 1 year ago

There is currently a hidden dependency on Magento_Multishipping even though it's not defined in the composer.json. This causes build issues for projects that do not include Multishipping or have it replaced.

Issue

When running the compile command (bin/magento setup:di:compile) build will fail on multiple files:

You should be able to replicate it by adding a replace section to your project's root composer.json:

...
"replace": {
  "magento/module-multishipping": "*",
}
...

Fix

We've "fixed" it by:

Would love to see this handled as an actual soft dependency. Thanks in advance!

escruickshank commented 1 year ago

Hi Leon, thank you for reporting this! We will look into it.

escruickshank commented 1 year ago

Hi @Stoux, thank you for your comment. We have now fixed this in v3.5.1.