The 8.x-2.x release for the value module changes how entity reference fields are serialized. This is now opt-in instead of being done automatically for you.
The EntityReferenceFieldItemNormalizer now returns simple values for target_id, target_type..etc which you can now feed to a Twig value() function to get field values back.
Example: (assumes an article node type referencing an author entity type).