Problem/Motivation
Data within the field does not show on nodes with layout builder enabled. It does show in the Layout Builder form, but not on the node view. The field value is empty and that's when the data is not rendering using layout builder.
Steps to reproduce
- Either install any contributed entity reference formatter module or create a new custom entity formatter (i.e. to render a markup based on the need)
- Create a content type TEST with an entity reference field (Reference a node/term/form)
- Try to add that entity reference field as block with layout builder
- Select the custom formatter or the one using contribued modules from layout builder settings
- Create a content for the content type TEST and don't add any content within entity reference field
- The block will load empty data in it.
Proposed resolution
- The field formatter markup must be loaded on the page based on the formatter logic