Issue
After adding any block through Site studio "block" element, when previewing the component, you will get this error:
This block is broken or missing. You may be missing content or you might need to enable the original module.
Resolution
- Check if the twig_tweak module is enabled
- If it is enabled and not in use, then this should be disabled, as the twig_tweak module is not compatible with Site Studio currently.
Cause
The issue will occur only when adding the block to the pages through Site Studio block element, and not when added through block layout, because the twig_tweak incompatibility is with Site Studio and not Drupal. The drupal_block function defined in Site Studio's TwigExtension is overridden by twig_tweak's drupal_block function.