Title: @tailwindcss/vite@4.0.6 is not compatible with vite@7.x. · Issue #332 · TanStack/cli · GitHub
Open Graph Title: @tailwindcss/vite@4.0.6 is not compatible with vite@7.x. · Issue #332 · TanStack/cli
X Title: @tailwindcss/vite@4.0.6 is not compatible with vite@7.x. · Issue #332 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App Describe the bug 4:40:47 PM [vite] (client) ✨ new dependencies optimized: @tanstack/ai-react, @tanstack/ai-client 4:40:47 PM [vite] (client) ✨ optimized dependencies changed. reloadi...
Open Graph Description: Which project does this relate to? Create Tanstack App Describe the bug 4:40:47 PM [vite] (client) ✨ new dependencies optimized: @tanstack/ai-react, @tanstack/ai-client 4:40:47 PM [vite] (client) ✨...
X Description: Which project does this relate to? Create Tanstack App Describe the bug 4:40:47 PM [vite] (client) ✨ new dependencies optimized: @tanstack/ai-react, @tanstack/ai-client 4:40:47 PM [vite] (client) ✨...
Opengraph URL: https://github.com/TanStack/cli/issues/332
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@tailwindcss/vite@4.0.6 is not compatible with vite@7.x.","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App\n\n### Describe the bug\n\n```\n4:40:47 PM [vite] (client) ✨ new dependencies optimized: @tanstack/ai-react, @tanstack/ai-client\n4:40:47 PM [vite] (client) ✨ optimized dependencies changed. reloading\n4:40:48 PM [vite] Internal server error: Cannot convert undefined or null to object\n Plugin: @tailwindcss/vite:generate:serve\n File: /Volumes/T9/product/2026/tokstudio/src/styles.css?direct\n at M.generate (file:///Volumes/T9/product/2026/tokstudio/node_modules/.pnpm/@tailwindcss+vite@4.0.6_vite@7.1.7/node_modules/@tailwindcss/vite/dist/index.mjs:1:5762)\n at async TransformPluginContext.transform (file:///Volumes/T9/product/2026/tokstudio/node_modules/.pnpm/@tailwindcss+vite@4.0.6_vite@7.1.7/node_modules/@tailwindcss/vite/dist/index.mjs:1:3431)\n at async EnvironmentPluginContainer.transform (file:///Volumes/T9/product/2026/tokstudio/node_modules/.pnpm/vite@7.1.7_@types+node@22.10.2_tsx@4.0.0/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:30984:14)\n at async loadAndTransform (file:///Volumes/T9/product/2026/tokstudio/node_modules/.pnpm/vite@7.1.7_@types+node@22.10.2_tsx@4.0.0/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:26116:26)\n at async viteTransformMiddleware (file:///Volumes/T9/product/2026/tokstudio/node_modules/.pnpm/vite@7.1.7_@types+node@22.10.2_tsx@4.0.0/node_modules/vite/dist/node/chunks/dep-Bm2ujbhY.js:27187:20)\n```\n\n\n\n### Your Example Website or App\n\nno url\n\n### Steps to Reproduce the Bug or Issue\n\n1. npm create @tanstack/start@latest\n2. npm run dev\n3. error occurs\n\n### Expected behavior\n\nAs a user, I expect works well\n\n### Screenshots or Videos\n\n_No response_\n\n### Platform\n\n- OS: [macOS]\n- Browser: [Chrome]\n- Version: [143]\n\n\n### Additional context\n\nI ask clause code opus, answer as following:\nThe issue is a version incompatibility: @tailwindcss/vite@4.0.6 is too old for vite@7.1.7. The @tailwindcss/vite plugin at version 4.0.6 was designed for Vite 5/6, and the internal API changes in Vite 7 cause the \"Cannot convert undefined or null to object\" error in the plugin's generate method.\n\nAfter I upgrade @tailwindcss/vite to 4.1.18, it works.","author":{"url":"https://github.com/guotie","@type":"Person","name":"guotie"},"datePublished":"2026-02-06T08:56:24Z","url":"https://github.com/TanStack/cli/issues/332"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cf737025-fc63-4903-2426-baa049403a8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA0E:3270C:1A0256B:239D5EF:6AF9AA7F |
| html-safe-nonce | aabdbf3a6723cae22a376e9c3efc7ce69d54e2c73176f0e95ab923eb60abdbd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTBFOjMyNzBDOjFBMDI1NkI6MjM5RDVFRjo2QUY5QUE3RiIsInZpc2l0b3JfaWQiOiI0MTU4NDM4NjcxMjMxMDY4Nzk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e50fe128271974b11f4ed904bbfbe11c94aa0d6917a144d23e41aa7c0070b2c7 |
| hovercard-subject-tag | issue:3905661022 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/cli/332/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4eb4115ad23d205d2610310813c17ff9630eff70f208b7df14a9b5d8125021d3/TanStack/cli/issues/332 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4eb4115ad23d205d2610310813c17ff9630eff70f208b7df14a9b5d8125021d3/TanStack/cli/issues/332 |
| og:image:alt | Which project does this relate to? Create Tanstack App Describe the bug 4:40:47 PM [vite] (client) ✨ new dependencies optimized: @tanstack/ai-react, @tanstack/ai-client 4:40:47 PM [vite] (client) ✨... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | guotie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/cli git https://github.com/TanStack/cli.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 932949058 |
| octolytics-dimension-repository_nwo | TanStack/cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932949058 |
| octolytics-dimension-repository_network_root_nwo | TanStack/cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width