Magento2 – Invalid ExtensionInterface for Nonexistent Class Interface with setup:di:compile

magento2

I started getting this error running bin/magento setup:di:compile:

Invalid ExtensionInterface for nonexistent class Interface in file /bitnami/magento/htdocs/app/code/Magento/TestModuleExtensionAttributes/Api/Data/FakeExtensibleTwoInterface.php

Deleting the generated/ and var/ folders did not help, nor did emptying the cache and re-indexing. Has anyone encountered a problem like this?

Best Answer

I believe that you try to run the test on this installation. And test copy test modules in app/code folder and do not remove it.

Please delete app/code/Magento/Test* modules manually and re run compilation

Related Topic