Compile error with Magneto 2.4.8
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"/>
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!