Contentful logo

Contentful Community

No fields in node.data.target when trying to render embedded entry (react)

The README.md shows the way to render rich text as the following:

const options = {
  renderNode: {
    [BLOCKS.EMBEDDED_ENTRY]: (node) => {
      console.log(node)
      const { title, description } = node.data.target.fields;
      return <CustomComponent title={title} description={description} />
    }
  }
};

My implementation is basically identical but when I console.log(node) it gives the following result:


Source: https://imgur.com/XlX4dAd

Clearly there is no fields in node.data.target

I am super confused because the same code was working a few days ago but now its bust.

Same as: https://github.com/contentful/rich-text/issues/147