tanstack builder example SaaS dashboard fail to build
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- bun, react, typescript, vite
- 领域
- build-system, cloud
调研方向
从链接的 tanstack-dashboard 示例中的 src/components/demo.FormComponents.tsx 开始,检查未解析的 #/components/ui/button import。运行 npm run build,复现 issue 中描述的 Cloudflare 部署路径。当 SaaS dashboard 在没有 Vite import 解析错误的情况下成功构建时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Which project does this relate to?
Create Tanstack App
Describe the bug
Cloudflare build log:
2026-05-06T09:35:17.854Z Initializing build environment...
2026-05-06T09:35:21.111Z Success: Finished initializing build environment
2026-05-06T09:35:21.643Z Cloning repository...
2026-05-06T09:35:22.810Z No build output detected to cache. Skipping.
2026-05-06T09:35:22.810Z No dependencies detected to cache. Skipping.
2026-05-06T09:35:22.813Z Detected the following tools from environment: bun@1.2.15, nodejs@22.16.0
2026-05-06T09:35:22.815Z Installing project dependencies: bun install
2026-05-06T09:35:22.985Z [1.26ms] ".env.local"
2026-05-06T09:35:23.000Z bun install v1.2.15 (df017990)
2026-05-06T09:35:23.028Z Resolving dependencies
2026-05-06T09:35:28.002Z Resolved, downloaded and extracted [2232]
2026-05-06T09:35:29.646Z Saved lockfile
2026-05-06T09:35:29.647Z
2026-05-06T09:35:29.647Z + @tailwindcss/typography@0.5.19
2026-05-06T09:35:29.647Z + @tanstack/devtools-vite@0.6.0
2026-05-06T09:35:29.648Z + @testing-library/dom@10.4.1
2026-05-06T09:35:29.648Z + @testing-library/react@16.3.2
2026-05-06T09:35:29.649Z + @types/node@22.19.17 (v25.6.0 available)
2026-05-06T09:35:29.649Z + @types/pg@8.20.0
2026-05-06T09:35:29.649Z + @types/react@19.2.14
2026-05-06T09:35:29.649Z + @types/react-dom@19.2.3
2026-05-06T09:35:29.649Z + @vitejs/plugin-react@6.0.1
2026-05-06T09:35:29.649Z + dotenv@17.4.2
2026-05-06T09:35:29.649Z + jsdom@28.1.0 (v29.1.1 available)
2026-05-06T09:35:29.649Z + tsx@4.21.0
2026-05-06T09:35:29.649Z + typescript@5.9.3 (v6.0.3 available)
2026-05-06T09:35:29.649Z + vite@8.0.10
2026-05-06T09:35:29.649Z + vitest@3.2.4 (v4.1.5 available)
2026-05-06T09:35:29.649Z + wrangler@4.88.0
2026-05-06T09:35:29.649Z + @cloudflare/vite-plugin@1.36.0
2026-05-06T09:35:29.650Z + @neondatabase/serverless@1.1.0
2026-05-06T09:35:29.650Z + @sentry/tanstackstart-react@10.51.0
2026-05-06T09:35:29.650Z + @tailwindcss/vite@4.2.4
2026-05-06T09:35:29.650Z + @tanstack/react-devtools@0.10.2
2026-05-06T09:35:29.650Z + @tanstack/react-form@1.29.1
2026-05-06T09:35:29.650Z + @tanstack/react-query@5.100.9
2026-05-06T09:35:29.650Z + @tanstack/react-query-devtools@5.100.9
2026-05-06T09:35:29.650Z + @tanstack/react-router@1.169.2
2026-05-06T09:35:29.650Z + @tanstack/react-router-devtools@1.166.13
2026-05-06T09:35:29.656Z + @tanstack/react-router-ssr-query@1.166.12
2026-05-06T09:35:29.656Z + @tanstack/react-start@1.167.64
2026-05-06T09:35:29.656Z + @tanstack/router-plugin@1.167.34
2026-05-06T09:35:29.656Z + better-auth@1.6.9
2026-05-06T09:35:29.657Z + class-variance-authority@0.7.1
2026-05-06T09:35:29.657Z + clsx@2.1.1
2026-05-06T09:35:29.657Z + dotenv-cli@11.0.0
2026-05-06T09:35:29.657Z + drizzle-kit@0.31.10
2026-05-06T09:35:29.657Z + drizzle-orm@0.45.2
2026-05-06T09:35:29.657Z + lucide-react@0.577.0 (v1.14.0 available)
2026-05-06T09:35:29.657Z + pg@8.20.0
2026-05-06T09:35:29.657Z + react@19.2.5
2026-05-06T09:35:29.657Z + react-dom@19.2.5
2026-05-06T09:35:29.657Z + tailwind-merge@3.5.0
2026-05-06T09:35:29.657Z + tailwindcss@4.2.4
2026-05-06T09:35:29.657Z + tw-animate-css@1.4.0
2026-05-06T09:35:29.657Z + vite-plugin-neon-new@0.8.0
2026-05-06T09:35:29.658Z + zod@4.4.3
2026-05-06T09:35:29.658Z
2026-05-06T09:35:29.658Z 516 packages installed [6.69s]
2026-05-06T09:35:29.658Z
2026-05-06T09:35:29.658Z Blocked 1 postinstall. Run `bun pm untrusted` for details.
2026-05-06T09:35:29.858Z Executing user build command: npm run build
2026-05-06T09:35:30.251Z
2026-05-06T09:35:30.251Z > build
2026-05-06T09:35:30.251Z > vite build && cp instrument.server.mjs .output/server
2026-05-06T09:35:30.251Z
2026-05-06T09:35:34.072Z vite v8.0.10 building client environment for production...
2026-05-06T09:35:34.300Z
transforming...
2026-05-06T09:35:34.301Z [@tanstack/devtools-vite] Removed devtools code from: /src/routes/__root.tsx
2026-05-06T09:35:34.301Z
2026-05-06T09:35:35.592Z ✓ 683 modules transformed.
2026-05-06T09:35:35.708Z rendering chunks...
2026-05-06T09:35:35.866Z computing gzip size...
2026-05-06T09:35:35.876Z dist/client/.assetsignore 0.02 kB
2026-05-06T09:35:35.876Z dist/client/assets/styles-on7c4OiS.css 52.87 kB │ gzip: 10.15 kB
2026-05-06T09:35:35.876Z dist/client/assets/sentry.testing-CoZXhRfG.js 0.57 kB │ gzip: 0.36 kB
2026-05-06T09:35:35.877Z dist/client/assets/about-CXZvQOV5.js 0.72 kB │ gzip: 0.43 kB
2026-05-06T09:35:35.877Z dist/client/assets/jsx-runtime-BOY_dY-B.js 0.93 kB │ gzip: 0.55 kB
2026-05-06T09:35:35.877Z dist/client/assets/form.address-BbeUGzib.js 3.12 kB │ gzip: 1.13 kB
2026-05-06T09:35:35.877Z dist/client/assets/routes-Cr0AXDSD.js 3.31 kB │ gzip: 1.35 kB
2026-05-06T09:35:35.877Z dist/client/assets/neon-CGbQfoVh.js 4.45 kB │ gzip: 1.71 kB
2026-05-06T09:35:35.877Z dist/client/assets/drizzle-BaHgodff.js 4.68 kB │ gzip: 1.69 kB
2026-05-06T09:35:35.877Z dist/client/assets/better-auth-CX7ujLX7.js 5.92 kB │ gzip: 1.58 kB
2026-05-06T09:35:35.877Z dist/client/assets/tanstack-query-Wl0hHEW4.js 9.67 kB │ gzip: 3.66 kB
2026-05-06T09:35:35.877Z dist/client/assets/sentry.testing-BZpUoqin.js 12.23 kB │ gzip: 3.67 kB
2026-05-06T09:35:35.877Z dist/client/assets/exports-2JvrqLsc.js 28.61 kB │ gzip: 9.94 kB
2026-05-06T09:35:35.877Z dist/client/assets/createServerFn-CLrdMGtT.js 36.13 kB │ gzip: 11.76 kB
2026-05-06T09:35:35.877Z dist/client/assets/demo.form-DxlDYG5l.js 47.06 kB │ gzip: 12.30 kB
2026-05-06T09:35:35.877Z dist/client/assets/form.simple-0ihJ51U2.js 59.94 kB │ gzip: 16.48 kB
2026-05-06T09:35:35.878Z dist/client/assets/index-GS-FPlBn.js 349.99 kB │ gzip: 110.59 kB
2026-05-06T09:35:35.878Z
2026-05-06T09:35:35.878Z ✗ Build failed in 1.80s
2026-05-06T09:35:35.879Z error during build:
2026-05-06T09:35:35.879Z Build failed with 1 error:
2026-05-06T09:35:35.879Z
2026-05-06T09:35:35.879Z Error: [vite]: Rolldown failed to resolve import "#/components/ui/button" from "/opt/buildhome/repo/src/components/demo.FormComponents.tsx".
2026-05-06T09:35:35.879Z This is most likely unintended because it can break your application at runtime.
2026-05-06T09:35:35.879Z If you do want to externalize this module explicitly add it to
2026-05-06T09:35:35.880Z `build.rollupOptions.external`
2026-05-06T09:35:35.880Z at viteLog (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33111:57)
2026-05-06T09:35:35.880Z at file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33147:71
2026-05-06T09:35:35.880Z at onwarn (file:///opt/buildhome/repo/node_modules/@vitejs/plugin-react/dist/index.js:40:7)
2026-05-06T09:35:35.880Z at file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33147:28
2026-05-06T09:35:35.880Z at onRollupLog (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33142:63)
2026-05-06T09:35:35.883Z at onLog (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:32911:4)
2026-05-06T09:35:35.883Z at file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs:50:26
2026-05-06T09:35:35.884Z at logger (file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs:41:3)
2026-05-06T09:35:35.884Z at onLog (file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/bindingify-input-options-DbbBhzky.mjs:1991:32)
2026-05-06T09:35:35.884Z at aggregateBindingErrorsIntoJsError (file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs:48:18)
2026-05-06T09:35:35.884Z at unwrapBindingResult (file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/error-DL-e8-oE.mjs:18:128)
2026-05-06T09:35:35.884Z at #build (file:///opt/buildhome/repo/node_modules/rolldown/dist/shared/rolldown-build-DSxL8qiP.mjs:3317:34)
2026-05-06T09:35:35.884Z at async buildEnvironment (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33018:64)
2026-05-06T09:35:35.885Z at async Object.build (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33440:19)
2026-05-06T09:35:35.886Z at async buildStartViteEnvironments (file:///opt/buildhome/repo/node_modules/@tanstack/start-plugin-core/dist/esm/vite/planning.js:94:23)
2026-05-06T09:35:35.886Z at async Object.buildApp (file:///opt/buildhome/repo/node_modules/@tanstack/start-plugin-core/dist/esm/vite/plugin.js:111:8)
2026-05-06T09:35:35.886Z at async Object.buildApp (file:///opt/buildhome/repo/node_modules/vite/dist/node/chunks/node.js:33432:6)
2026-05-06T09:35:35.886Z at async CAC.<anonymous> (file:///opt/buildhome/repo/node_modules/vite/dist/node/cli.js:778:3) {
2026-05-06T09:35:35.886Z errors: [Getter/Setter]
2026-05-06T09:35:35.886Z }
2026-05-06T09:35:36.058Z Failed: error occurred while running build command
Your Example Website or App
https://github.com/MarvinXu/tanstack-dashboard
Steps to Reproduce the Bug or Issue
- Go to https://tanstack.com/builder
- Click
SaaS dashboardandAnalyze - Click
Deploy to Cloudflare
Expected behavior
build success
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- Version: [e.g. 91.1]
Additional context
No response
- 主要语言
- TypeScript
- 星标
- 1.3k
- 派生
- 185
- 平均合并
- 18 小时 45 分钟
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/cli 的其他 Issue
-
create: scaffold's unlayered body styles defeat its own @layer base rules (and any shadcn theme) 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
enhancement
难度 5/5 一周以上 新手友好度 45/100
-
enhancement
难度 3/5 1-2 天 新手友好度 58/100
-
难度 4/5 3-5 天 新手友好度 68/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·