TanStack / TanStack/cli

tanstack builder example SaaS dashboard fail to build

Ouverte
#447 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
TypeScript
Étoiles
1.3k
Forks
185
Merge moyen
18 h 45 min
PR mergées (30 j)
2

Description

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
  1. Go to https://tanstack.com/builder
  2. Click SaaS dashboard and Analyze
  3. 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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Commencez par src/components/demo.FormComponents.tsx dans l’exemple tanstack-dashboard lié et examinez l’import non résolu de #/components/ui/button. Exécutez npm run build en reproduisant le chemin de déploiement Cloudflare décrit dans l’issue. C’est terminé lorsque le tableau de bord SaaS se construit correctement sans l’erreur de résolution d’import de Vite.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
bun, react, typescript, vite
Domaine
build-system, cloud
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
52/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.