Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty sitemap since 4.1.0 #137

Closed
guy-confetti opened this issue Aug 19, 2024 · 9 comments
Closed

empty sitemap since 4.1.0 #137

guy-confetti opened this issue Aug 19, 2024 · 9 comments

Comments

@guy-confetti
Copy link

I'm using @nuxtjs/sitemap@6, and since updating @nuxtjs/robots to 4.1.0 the sitemap.xml returns empty.

see: https://stackblitz.com/edit/nuxt-starter-uk5gcm

@harlan-zw
Copy link
Contributor

Thank you for reporting this, I've pushed up a fix in v4.1.1.

@guy-confetti
Copy link
Author

Thanks for the quick response! I've updated to v4.1.1 but I'm still experiencing the issue. production build or order of modules does not affect it. do I need to enable it somehow?

https://stackblitz.com/edit/nuxt-starter-uk5gcm

@Skyost
Copy link

Skyost commented Aug 20, 2024

@harlan-zw harlan-zw reopened this Aug 20, 2024
@felixranesberger
Copy link

Same problem here, downgrading to 4.0.2 fixed it:

Works using @nuxtjs/seo@^2.0.0-rc.18 in combination with downgraded @nuxtjs/robots@4.0.2

@harlan-zw
Copy link
Contributor

I'm very sorry about this, it seems like I was missing test coverage on the robot meta tag in production. I've pushed up a fix in v4.1.2 and will release a Nuxt SEO release with this patch now as well.

@felixranesberger
Copy link

No Problem, thanks for the quick fix!

@Skyost
Copy link

Skyost commented Aug 21, 2024

Is the bug fixed for you @felixranesberger ? I have the same problem, even with v4.1.2... Downgrading to v4.0.2 works tho.

Skyost added a commit to Skyost/MesCoursDeMaths that referenced this issue Aug 21, 2024
@felixranesberger
Copy link

Just tried out the new version of @nuxtjs/seo@^2.0.0-rc.19 which uses @nuxtjs/robots@4.1.3 and everything seems to work.

sitemap.xml is filled with entries, also robots.txt and robots-meta-tag seems to work just fine, so no issues on my side.

@harlan-zw
Copy link
Contributor

harlan-zw commented Aug 22, 2024

Thanks for confirming @felixranesberger.

I've tested using Stackblitz to also confirm the issue is solved: https://stackblitz.com/edit/nuxt-starter-kjedrj?file=package.json

Again sorry for the issue, I was moving house yesterday so I thought I could just quickly push up a fix but I missed the case of not having any robot rules. Test cases now cover this properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants