Hello,
I tried to install gatsby on my blog, and i want to render a RichText.
To get Data i use "gatsby-source-prismic": "^3.3.6"
so i setup my gatsby-config with the right source and json file for the data of my custom type. I get Data with no issue.
Now when i want to render a RichText, by using <RichText render={document.body} />
i have this error:
when i console.log(document.body) it's an array.
Error in function eval in ./node_modules/prismic-reactjs/dist/prismic-reactjs.js:592 Cannot read property 'map' of undefined
var r = function (e) {
592 | var t = e.spans.map(function (t) {
593 | var n = e.text.slice(t.start, t.end);
594 | return new s.SpanNode(t.start, t.end, t.type, n, , t);
595 | }),
Can someone Help me on that please?
Thanks