JEverhart383 / astro-wordpress-starter

151 stars 31 forks source link

A `getStaticPaths()` route pattern was matched, but no matching static path was found for requested path #8

Open tiwka19 opened 1 year ago

tiwka19 commented 1 year ago

When I create a page in wordpress, and after I refresh astro page and go to it, I get a 404 and i get message:

[getStaticPaths] A `getStaticPaths()` route pattern was matched, but no matching static path was found for requested path `/test-3/`.
Possible dynamic routes being matched: src/pages/[...uri].astro.
djmtype commented 1 year ago

I don't know if this is related, but I get: [getStaticPaths] invalid path param: uri. undefined expected for an optional param, but got empty string. with Astro 2.10.9 and @astrojs/node 5.3.4

JEverhart383 commented 1 year ago

I actually started to get the first error in this issue, and it was because I had more terms than I could fetch in the GraphQL query. So, if I have 200 terms between tags and categories, the second 100 terms don't get included in the getStaticPaths array. @djmtype what type of route is this, a post, category archive?

djmtype commented 1 year ago

@JEverhart383 It's whenever I visit a single post.