magento2.2.4 – Magento upgrade problem Fatal error: Uncaught Error: Cannot instantiate interface

I upgraded from Magento 2.3.4 to 2.4.0

And now I’m getting the following error when running the indexer.

Fatal error: Uncaught Error: Cannot instantiate interface MagentoInventoryCatalogApiApiDefaultStockProviderInterface in /app/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php:121

If I disable Magento_InventoryIndexer then the indexer works again but doesn’t actually index.

Thanks