Added a Issue fork and MR.
akoe → created an issue.
Solved this exact issue with es_connector version 7.0-alpha4 within Drupal 10.2.3
Also tested the patch with Rabbit Hole 2.0.0-alpha5 and Drupal 10.2.2 and can confirm it solves the exception thrown by ContentEntityBase->getTranslatedField()
We ran into the same issue with our CI containers that were failing only when run in pipeline. And we weren't able to reproduce this locally with the same containers in any way.
Our stack: MySQL 5.7; PHP 8.1 and Drupal 9 and 10
In the pipeline we could narrow it down to a Drush cache clear for the router cache: drush cache:clear router
and also running the router rebuild method directly triggered the error: drush ev "\Drupal::service('router.builder')->rebuild();"
Thankfully the workaround disabling xdebug via xdebug.mode=off is working for our usecase. And we will be testing patches for D10 also.
akoe → created an issue.
Tested patch with v 9.5.9 and it solve the issue with a Claro based theme