which seems to query the document as expected but I now get this server error:
Server Error
Error: Error serializing `.curso` returned from `getStaticProps` in "/cursos/[uid]".
Reason: `undefined` cannot be serialized as JSON. Please use `null` or omit this value.
This error happened while generating the page. Any console logs will be displayed in the terminal window.
Hi @Phil! Thank you for your response. I did the changes you suggested but curso.data.body seems to be undefined so when passing it as props I get the following error:
Error: Error serializing `.slices` returned from `getStaticProps` in "/cursos/[uid]".
Reason: `undefined` cannot be serialized as JSON. Please use `null` or omit this value.
This is the result I get when I do curso.data
{
title: [ { type: 'heading3', text: 'Matemáticas', spans: [] } ],
description: [
{
type: 'paragraph',
text: 'Editado 21 Sept. A lacus vestibulum sed arcu non odio euismod lacinia at. Id volutpat lacus laoreet non curabitur gravida. Tempus quam pellentesque nec nam aliquam sem et tortor. ',
spans: []
}
],
level: 'Primaria',
grade: 'primero',
slices: [
{
slice_type: 'course_header_slice',
slice_label: null,
version: 'sktwi1xtmkfgx8626',
variation: 'default-slice',
primary: [Object],
items: [Array]
}
]
}
Passing only curso.data gives me this error
Your SliceZone is empty.
Go to your writing room and start creating content to see it appear here!
Any ideas on why this might be? Thanks in advance.
on this same note, I'm also not able to see body property with a graphQL query