Uploaded image for project: 'Cristal'
  1. Cristal
  2. CRISTAL-543

Make blocknote-headless compatible with React 17+

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 0.18
    • 0.17
    • Editor - Blocknote
    • None
    • Unknown
    • N/A
    • N/A

    Description

      As reported by mflorea, we are currently explicitly importing React in blocknote-headless.

       

      Copy of the conversation:
      My feeling is that https://unpkg.com/@xwiki/cristal-editors-blocknote-headless@0.17.0/dist/index.es.js is not properly built. I mean, those React.createElement should not be there. Based on https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html this looks like the output of the old (classic) jsx transformation (from before React 17), but we're using React 19 so I'm assuming the new jsx transformation should be used, which produces something like _jsx('h1' instead of React.createElement('h1'

      Access to the full conversation: https://matrix.to/#/!YVNiDFxizGkLYxwqOA:matrix.xwiki.com/$jKOvdOFNCsMnZjLghaJ3aFOTRRWLXbi1-XewfWaQTBg?via=matrix.xwiki.com&via=matrix.org
       

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: