#getStaticPaths

4 messages · Page 1 of 1 (latest)

gaunt rose
#

When using the Data Passing with props example for the getStaticPaths function, I am getting the error Cannot read properties of undefined (reading 'split')

little auroraBOT
#

Hi @gaunt rose. 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. However, you can refer to the Data Passing with props (https://docs.astro.build/en/reference/api-reference#data-passing-with-props) section in the Astro documentation for more information on using getStaticPaths with props.

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

Astro Documentation

Build faster websites with less client-side JavaScript.

#

@gaunt rose kapa.ai is still learning and improving, please let us how it did by reacting below