throw new Error("'block' type is not defined in this schema (required).");
^
Error: 'block' type is not defined in this schema (required).
at blockContentFeatures (/home/deva7mad/Work/driven-properties-app/node_modules/@sanity/block-tools/lib/index.js:144:11)
at createRuleOptions (/home/deva7mad/Work/driven-properties-app/node_modules/@sanity/block-tools/lib/index.js:385:20)
at new HtmlDeserializer (/home/deva7mad/Work/driven-properties-app/node_modules/@sanity/block-tools/lib/index.js:978:57)
at htmlToBlocks (/home/deva7mad/Work/driven-properties-app/node_modules/@sanity/block-tools/lib/index.js:1020:10)
at convertHtmlToBlocks (/home/deva7mad/Work/driven-properties-app/sanity/utils/importBlogs.js:66:18)
at async transformBlogData (/home/deva7mad/Work/driven-properties-app/sanity/utils/importBlogs.js:98:20)
at async importBlogs (/home/deva7mad/Work/driven-properties-app/sanity/utils/importBlogs.js:123:33)
Node.js v18.17.1
Which versions of Sanity are you using?
Run sanity versions in the terminal and copy-paste the result here.
Describe the bug
Error while trying to convert html text to sanity block @sanity/block-tools.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here.Sanity 3.42.1
What operating system are you using?
Ubuntu 22
Which versions of Node.js / npm are you running?
Node: v18.17.1 NPM: 9.6.7