#build process display error, dev process works fine

2 messages · Page 1 of 1 (latest)

fiery ferryBOT
#

Hi @jade dagger. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The provided code extracts are not from the Astro documentation or other sources I have access to. However, I can try to help you with some general advice.

The error you're encountering, "Cannot read properties of undefined (reading 'text')", usually occurs when you're trying to access a property on an object that is undefined. In your case, it seems like the issue might be related to the data.content.text in the TemplateDefault.astro file.

To debug this issue, you can try adding some console logs to check the values of data, data.content, and data.content.text before accessing the text property. This will help you identify which part of the object is undefined.

If you need more help, I recommend checking the Astro documentation (https://docs.astro.build) for more information and examples.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: