Trying to fix one more build error that happens while pre-rendering using SSG:
PLASMIC: Encountered error when pre-rendering Simple: TypeError: Cannot read properties of undefined (reading 'details')
Simple is the name of a code component that’s included in several of my plasmic pages. The component doesn’t have any field called details that I’m aware of.
It would be really nice if Plasmic had more detailed error messages here. Hard to narrow down where in the code where I might be inadvertently accessing a property of something that’s undefined
I thought maybe the error was happening because my Simple component (also known as NavBar in my code) had a slot leftSide that didn’t have a defaultValue. So I added an empty array for the defaultValue but the error is still happening
it looks like it’s coming from chakra useBreakpointValue(); you can try wrapping what you’re passing into extractPlasmicQueryData() with the chakra theme provider