nuxt-modules / sitemap

Powerfully flexible XML Sitemaps that integrate seamlessly, for Nuxt.
https://nuxtseo.com/sitemap
MIT License
336 stars 31 forks source link

fix: Sitemap is completely empty #344

Closed MickL closed 3 months ago

MickL commented 3 months ago

🐛 The bug

Using latest @nuxtjs/seo 2.0.0-rc.17 that is using @nuxtjs/sitemap 6.0.0-beta.2 the sitemap is completely empty, does not contain a single link.

Downgrading to @nuxtjs/seo 2.0.0-rc.16 that uses @nuxtjs/sitemap 5.3.5 everything works again.

🛠️ To reproduce

Sorry I dont have the time, I hope you can reproduce

MickL commented 3 months ago

2.0.0-rc.16 sets noindex, nofollow to ALL routes. Maybe thats related to why the sitemap is empty? Going back to rc.11

JordanchoEftimov commented 3 months ago

I can confirm that using the latest @nuxtjs/seo was making the sitemap empty. I downgraded as stated above and now the sitemap words.

vaddenz commented 3 months ago

Same here, took hours to figure this out. Very annoying. @nuxtjs/seo@2.0.0-rc.11 mentioned by Mick works fine.

harlan-zw commented 3 months ago

Please use the latest Nuxt SEO. The bug was related to a broken nuxt robots version which was caused by some missing tests.

Sorry for the issues faced.

MickL commented 3 months ago

I upgrade to the latest Nuxt SEO 2.0.0-rc.19, sitemap is still completely empty.

harlan-zw commented 3 months ago

Would it be possible to provide a minimal reproduction? I've tried to cover as many test cases as I could but it's possible I missed something

MickL commented 2 months ago

I just deleted node_modules folder and lock file and now it seems to work, thanks!