Hi again! Ive been trying to use
ReferenceError: DOMParser is not defined
at defaultParseHtml (***/studio/node_modules/@sanity/block-tools/lib/HtmlDeserializer/helpers.js:173:35)
The HTML-deserialization is done by default by the browser's native DOMParser. On the server side you can give the function parseHtml that parses the html into a DOMParser compatible model / API.
if you're running it on the server, you need to npm/yarn install some DOM parser like jsdom and use that
That makes complete sense! And you just got rid of my error - thanks a ton! 🍻
Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.