module-shipper icon indicating copy to clipboard operation
module-shipper copied to clipboard

Compile error with Magneto 2.4.8

Open n2diving-net opened this issue 1 year ago • 1 comments

With version 2.4.8, Magento introduced an additional validation step during setup:di:compile. When it finds missing preferences it throws an error during compilation. Its seems, that in 2.4.8 additional validation has been added for preference class so throwing error for modules which has missing preference classes, in this case shipperhq/module-shipper

  • php bin/magento --no-ansi --quiet setup:di:compile Compilation was started. In Reader.php line 103:

Preference declared for "Magento\Framework\Search\Adapter\Mysql\Field\FieldInterface" as "Magento\Framework\Search\Adapter\Mysql\Field\Field", but the latter does not exist.

Compile error triggered in etc/di.xml by the following line...

<preference for="Magento\Framework\Search\Adapter\Mysql\Field\FieldInterface" type="Magento\Framework\Search\Adapter\Mysql\Field\Field"/>

n2diving-net avatar Apr 19 '25 16:04 n2diving-net

Hi @n2diving-dgx thanks for raising this, it was addressed in a release shortly after you raised it. It looks like my team didn't update you here to tell you, my apologies!

wsajosh avatar Aug 21 '25 15:08 wsajosh