Nuxt Sitemap module does nothing
hi! I followed https://nuxtseo.com/sitemap/getting-started/installation steps and after viewing /sitemap.xml , I just get redirected to 404 page. I get exactly the same results if I comment the module out in nuxt.config, whether I provide more config
sitemaps: { sitemaps: ... } }
. All I get is nothing, nothing works.
Is there some obvious configuration missing from this documentation page?
My versions:
My nuxt.config:
So, when loading my app at localhost:3000/sitemap.xml
, I land on localhost:3000/en/sitemap.xml
with 404 template. Help me, please.Nuxt SEO
Install Nuxt Sitemap · Nuxt SEO
Get started with Nuxt Sitemap by installing the dependency to your project.
13 Replies
In development mode, the sitemap won't be generated automatically.
To preview the sitemap, try running:
This will generate the
sitemap.xml
file for you to view.
Alternatively, in production, you can run:
Once deployed, the sitemap will be available at https://example.com/sitemap.xml
.thanks for quick reply! yeah I tried but that throws whole bunch of other errors
Its look like this https://discord.com/channels/473401852243869706/1080872789940121732/1274268691223281726
It error from vue/server-render module, upgrade your nuxt app
Thanks, will try later
Nuxt SEO
Reproductions: Stackblitz · Nuxt SEO
Create minimal reproductions for Nuxt Sitemap or just experiment with the module.
but yeh looks like a dependency conflict, run
nuxi upgrade --force
I did a force update, now I get this while running dev mode:
seems like it only upgraded to 3.8 ?
ran gaian, now have 3.13 version... but a new Error
cleared node_modules, run pnpm prune, fresh pnpm install - still the same
do
pnpm why ufo
likely one of your dependencies is requiring an old versionOK, here is what helped:
- delete root node_modules ( not symlinked )
- delete lock file
- pnpm i
now it started working, thanks for being a "rubber duck" ! 😉
this is basically what nuxi upgrade --force should do so bit strange 🤔
morning! after I got all to work, I have a question - I need to provide a static link to another sitemap XML ( I am running 2 apps under the same domain ), if I do it via this config:
it gives me a "shop" sub-sitemap with just 1 link inside, obviously
is ther a way to skip this page and have a link on the 1st level sitemap? I wonder if that double-nesting can have seo consequence
ohhh thank you! 🙌