Open CalebBarnes opened 5 months ago
@nextwp/core: 0.0.2
WP has no posts, but it has a /blog page.
generateStaticParams postTypes is ["pages"]
TypeError: Cannot read properties of undefined (reading 'posts')
Somewhere we are trying to access .posts on undefined.
Deleting the blog page seemed to resolve the issue.
But if there is a new site with a blog page and no posts yet then it looks like it will break even if generateStaticParams does not have "posts" post type.
@nextwp/core: 0.0.2
WP has no posts, but it has a /blog page.
generateStaticParams postTypes is ["pages"]
TypeError: Cannot read properties of undefined (reading 'posts')
Somewhere we are trying to access .posts on undefined.