You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected behavior is that the guide to build the blog with gatsby and headless cms works and does not throw an error in the rendering
Steps to Reproduce the Problem
I generate the API models
I install graphql plugin in gatsby and put my access token
3.I paste the code as it appears in the documentation and when running the compilation it throws an error
Detailed Description
The result of the query in the body field cannot be rendered since it is a JSON format. // We render a nice list of blog posts const BlogPosts = blogPosts.map(post => ( <div key={post-${post.id}}> <h1>{post.title}</h1> <p style={{whiteSpace: "pre-wrap"}}>{post.body}</p> </div> ))
This is the error it throws in the browser when run command gatsby develop
Objects are not valid as a React child (found: object with keys {type, children}).
Possible Solution
The text was updated successfully, but these errors were encountered:
This is:
Specifications
Expected Behavior
Actual Behavior
The expected behavior is that the guide to build the blog with gatsby and headless cms works and does not throw an error in the rendering
Steps to Reproduce the Problem
3.I paste the code as it appears in the documentation and when running the compilation it throws an error
Detailed Description
The result of the query in the body field cannot be rendered since it is a JSON format.
// We render a nice list of blog posts const BlogPosts = blogPosts.map(post => ( <div key={
post-${post.id}}> <h1>{post.title}</h1> <p style={{whiteSpace: "pre-wrap"}}>{post.body}</p> </div> ))
This is the error it throws in the browser when run command
gatsby develop
Objects are not valid as a React child (found: object with keys {type, children}).
Possible Solution
The text was updated successfully, but these errors were encountered: