I followed the all step https://www.drupal.org/project/drupal/issues/3204494#comment-14099699 🐛 Content Not reverting in Layout builder section Active and I am able to reproduce this error in 10.1.8
amarlata → created an issue.
Fixed: undefined method issue
Error: Call to undefined method Drupal\layout_builder\Form\BlockVisibilityForm::getAvailableContexts() in Drupal\layout_builder\Form\BlockVisibilityForm->buildForm() (line 125 of /core/modules/layout_builder/src/Form/BlockVisibilityForm.php)
Fixed: undefined method issue
Error: Call to undefined method Drupal\layout_builder\Form\BlockVisibilityForm::getAvailableContexts() in Drupal\layout_builder\Form\BlockVisibilityForm->buildForm() (line 125 of /core/modules/layout_builder/src/Form/BlockVisibilityForm.php).
Fixed: undefined method issue
Error: Call to undefined method Drupal\layout_builder\Form\BlockVisibilityForm::getAvailableContexts() in Drupal\layout_builder\Form\BlockVisibilityForm->buildForm() (line 125 of /var/www/html/docroot/core/modules/layout_builder/src/Form/BlockVisibilityForm.php).
amarlata → created an issue.
amarlata → created an issue.
Luke.Leber → credited amarlata → .
amarlata → created an issue.
amarlata → created an issue.