TanStackT
TanStack3mo ago
5 replies
sacred-emerald

Sitemap is hanging

When running vite build --mode production everything works very nicely up until the point where the sitemap is generated. At that point, it just hangs indefinitely.

[sitemap] Building Sitemap...
[sitemap] Writing sitemap XML at dist/client/sitemap.xml
[sitemap] Writing pages data at dist/client/pages.json
... hangs here...


Attached is my
vite.config.ts
and the dependencies are:

    "@clerk/tanstack-react-start": "^0.26.2",
    "@neondatabase/serverless": "^1.0.2",
    "@netlify/blobs": "^10.1.0",
    "@netlify/functions": "^4.3.0",
    "@netlify/neon": "^0.1.0",
    "@tanstack/query-db-collection": "^0.2.32",
    "@tanstack/react-db": "^0.1.33",
    "@tanstack/react-devtools": "^0.7.6",
    "@tanstack/react-form": "^1.23.7",
    "@tanstack/react-query": "^5.90.5",
    "@tanstack/react-query-devtools": "^5.90.2",
    "@tanstack/react-router": "^1.133.3",
    "@tanstack/react-router-devtools": "^1.133.3",
    "@tanstack/react-start": "^1.133.4",


"@netlify/vite-plugin-tanstack-start": "^1.1.0",
"@tanstack/devtools-vite": "^0.3.6",
    "@tanstack/eslint-plugin-router": "^1.132.31",
    "@tanstack/router-plugin": "^1.132.51",


I've tried setting sitemap.enabled: false but this gave the error:

error during build:
Error: Sitemap is not enabled


What else is needed to help resolve this? This "was" working....
Was this page helpful?