I'm upgrading from magento2.2.5 to 2.3.5 I'm facing this issue

PHP Fatal error:  Uncaught Error: Class 'Magento\Framework\Component\ComponentRegistrar' not found in app/code/<Vendor>/<ModuleName>/registration.php file


can anyone please help me.

  • Share the code of this file : app/code/<Vendor>/<ModuleName>/registration.php Commented Aug 7, 2020 at 6:55
  • updated the code in the ticket Commented Aug 7, 2020 at 7:30
  • Have you check by disabling/Remove this extension? if you disable does above error gone? Commented Aug 7, 2020 at 9:26
  • I'm having this issue. What was the solution?
    – Helen P
    Commented Jan 5, 2021 at 3:12

2 Answers 2


there is an issue with one of your module that does not have proper code in registration.php file and it does not have this class Magento\Framework\Component\ComponentRegistrar either delete the module or update the code of of your registration.php file in your module

  • i think you need to upgrade their composer.json file one simple way is to take complete backup of you app/code folder and remove mdules then upgrade and put back those modules
    – Pramod
    Commented Aug 6, 2020 at 6:13
  • remove generated
    – Pramod
    Commented Aug 6, 2020 at 6:23
  • yes removed the generated, pub and var data Commented Aug 6, 2020 at 7:01
  • still you are getting error?
    – Pramod
    Commented Aug 6, 2020 at 7:29
  • Let us continue this discussion in chat. Commented Aug 6, 2020 at 9:00

This should be the composer version-related issue

Try after update composer version

composer self-update --2

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.