dev-juju/EditorJS-React-Renderer

"This browser does not support `document.implementation.createHTMLDocument`"

Closed this issue · 1 comments

Describe the bug
I am encountering an issue with the "editorjs-react-renderer" package in a project that uses Next.js version 13.5.6. It appears that the document.implementation.createHTMLDocument method is not supported, which is causing a runtime error. This method is being used within the package, and it's not functioning as expected in my environment.

To Reproduce
1.Create a Next.js project with version 13.5.6.
2.Integrate the "editorjs-react-renderer" package.
3.pass the block data getting from editorjs to the Output comonent as prop

Expected behavior
Unhandled Runtime Error
Error: This browser does not support document.implementation.createHTMLDocument
...

Screenshots
Screenshot 2023-11-04 204255

Desktop (please complete the following information):

  • OS: Windows
  • Browser chrome
  • Version 3.5.1

@PCoder23 ReadMe Server Side Rendering

You are probably trying to use Server Side Rendering which isn't supported anymore since Version 3.0.0