You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using createSitemapsAndIndex generates an xml file, but seems to be missing the closing </sitemapindex> tag, causing xml to be invalid.
Chrome error: "error on line 1 at column 179: Extra content at the end of the document".
/lib/sitemap-index-stream.ts
Line 75: looks like this did not call
This has been patched and released. Pleased be advised createSitemapsAndIndex is deprecated and will be removed in the next major version. I recommend moving to SitemapAndIndexStream https://github.com/ekalinin/sitemap.js/blob/master/api.md#sitemapandindexstream. Please feel free to open a ticket if documentation is not clear.
Describe the bug
Using
createSitemapsAndIndex
generates anxml
file, but seems to be missing the closing</sitemapindex>
tag, causingxml
to be invalid.Expected behavior
Should generate:
But instead generates the above, without the closing
</sitemapindex>
Context:
"sitemap": "^6.1.0",
Additional context
Great work though!
The text was updated successfully, but these errors were encountered: