#Custom Lexical blocks JSX function throws child_process error

2 messages · Page 1 of 1 (latest)

livid ibex
#

Hey, i wanted to add my Blockquote Block to my Lexical Editor. I created a Block with a component, added it to the RenderBlocks.tsx and added it to the NodeTypes type in the RichText component. When i add the slug with a function that returns the React component (which is async if this has to do somethign with that) I get this error:

When i jsut return a empty div it works so it has to be a error with my JSX function...

    customBlockquote: ({ node }) => {
      return (
        <CustomBlockquoteBlock
          quote={node.fields.quote}
          blockType={node.fields.blockType}
          id={node.fields.id}
          blockName={node.fields.blockName}
        ></CustomBlockquoteBlock>
      )
    },