The example "How to add sitemap.xml for all language specific pages" here is not working and giving error:
Error: Page array from `query` wasn't found at `data.allSitePage.nodes`.
Fix the custom query or provide a custom `resolvePages` function.
https://www.gatsbyjs.com/plugins/gatsby-plugin-sitemap/#api-reference
Gatsby version - "4.19.0"
"gatsby-plugin-sitemap" - "5.20.0"
"gatsby-plugin-react-i18next" - "2.0.1"
The example "How to add sitemap.xml for all language specific pages" here is not working and giving error:
Gatsby version - "4.19.0" "gatsby-plugin-sitemap" - "5.20.0" "gatsby-plugin-react-i18next" - "2.0.1"
It can be fixed in this way:
Maybe demo Gatsby project and readme code sample are outdated?