TypeError thrown

Return value of TD\ElasticDatasource\Service\ContentProvider::getPrimarySource() must be of the type string or null, none returned