2

I am learning hyva theme for magento 2. Learning about hyva-react-checkout and Whenever I try to run any magento cli command, I get this error,

Autoload error: Module 'Hyva_ReactCheckout' from '/var/www/hyva/public/vendor/hyva-themes/magento2-react-checkout/src' has been already defined in '/var/www/hyva/public/vendor/hyva-themes/magento2-hyva-checkout/src'

How Do I solve this? I only installed couple of packages relating to hyva checkout and hyva-react-checkout. The commands I ran are following.

1 Answer 1

2

hyva-themes/magento2-react-checkout vs hyva-themes/magento2-hyva-checkout conflicts, you have to remove one of them.

hyva-themes/magento2-hyva-checkout is the old name of the hyva checkout module and hyva-themes/magento2-react-checkout is the new name of the hyva checkout module

So, you should remove hyva-themes/magento2-hyva-checkout from your composer.json and remove vendor/hyva-themes/magento2-hyva-checkout folder.

Then run composer install and run bin/magento setup:upgrade and re-compile DI by run bin/magento setup:di:compile and re-deploy static content if requires.

2
  • That worked. Thank you.
    – LosMos
    Oct 11, 2022 at 9:02
  • Glad to hear that!
    – Tu Van
    Oct 11, 2022 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.