If you receive the following error during compilation or reindexing in Magento 2, check that all Magento_Inventory* modules are consistently enabled or disabled. The error means the interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface is still referenced somewhere, although it is no longer available because Magento_InventoryIndexer is disabled.

The message is: Cannot instantiate interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface

Fixing Cannot instantiate interface StockIndexTableNameResolverInterface
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: