(Astro & React) The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified! (edited title)

Hey @dthreatt,

You have to tell the <StructuredText/> component how to render your linked records using the renderLinkToRecord prop, like this:

  renderLinkToRecord={({ record, children, transformedMeta }) => {
          switch (record.__typename) {
            case 'TeamMemberRecord':
              return (
                <a {...transformedMeta} href={`/team/${record.slug}`}>
                  {children}
                </a>
              );
            default:
              return null;
          }
        }}

Link to the documentation: react-datocms/docs/structured-text.md at master · datocms/react-datocms · GitHub

Does that help?