T
TanStack2mo ago
rival-black

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...
[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",
"@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",
"@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
error during build:
Error: Sitemap is not enabled
What else is needed to help resolve this? This "was" working....
3 Replies
parallel-tan
parallel-tan2mo ago
wait how are you getting this ? when i set sitemap.enabled: true it does nothing it doesnt even try to generate it nvm i got it: prerendering with crawling needs to be enabled
rival-black
rival-blackOP2mo ago
@notKamui Try my vite.config.js. Copy the relevant parts from that. It has been working nicely for me… but now hanging
national-gold
national-gold2mo ago
can you please create a github issue for this including a minimal reproducer project?

Did you find this page helpful?