Title: Error in production but not caught by linter via pnpm build · Issue #167 · TanStack/cli · GitHub
Open Graph Title: Error in production but not caught by linter via pnpm build · Issue #167 · TanStack/cli
X Title: Error in production but not caught by linter via pnpm build · Issue #167 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App Describe the bug I discovered a bug because I was trying to figure out why my code was building and deplying without errors then upon visiting the deployed website getting the respon...
Open Graph Description: Which project does this relate to? Create Tanstack App Describe the bug I discovered a bug because I was trying to figure out why my code was building and deplying without errors then upon visiting...
X Description: Which project does this relate to? Create Tanstack App Describe the bug I discovered a bug because I was trying to figure out why my code was building and deplying without errors then upon visiting...
Opengraph URL: https://github.com/TanStack/cli/issues/167
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error in production but not caught by linter via pnpm build","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App\n\n### Describe the bug\n\nI discovered a bug because I was trying to figure out why my code was building and deplying without errors then upon visiting the deployed website getting the response back from the url in return.\n\n```\n{\n \"error\": true,\n \"url\": \"https://tanstack-start-deployment-bug.vercel.app/\",\n \"statusCode\": 500,\n \"statusMessage\": \"Server Error\",\n \"message\": \"Server Error\"\n}\n```\n\nI made a repo to demonstrate the issue\n\nhttps://github.com/remusris/tanstack-start-deployment-bug\n\nbelow is the deployment url\n\nhttps://tanstack-start-deployment-bug.vercel.app/\n\nBasically if you export a const from the a route into some component this will trigger the error in deployment. \n\nIf you look at the `ComponentWithImportedZod.tsx` file that is culprit of the issue\n\nhttps://github.com/remusris/tanstack-start-deployment-bug/blob/master/src/components/ComponentWithImportedZod.tsx\n\nIf this is non an error please let me know what I'm doing wrong. \n\n### Your Example Website or App\n\nhttps://tanstack-start-deployment-bug.vercel.app/\n\n### Steps to Reproduce the Bug or Issue\n\nExport a const from a file inside of routes into a component outside of routes. In this case it was a zod schema for validating searchParams\n\n### Expected behavior\n\nThe user does not get any build errors or deployment errors but once the URL is live all you get in response is\n\n```\n{\n \"error\": true,\n \"url\": \"https://tanstack-start-deployment-bug.vercel.app/\",\n \"statusCode\": 500,\n \"statusMessage\": \"Server Error\",\n \"message\": \"Server Error\"\n}\n```\n\nhttps://tanstack-start-deployment-bug.vercel.app/\n\n### Screenshots or Videos\n\nCheck out the url below\n\nhttps://tanstack-start-deployment-bug.vercel.app/\n\n### Platform\n\n\nGoogle Chrome | 140.0.7339.128 (Official Build) (64-bit) (cohort: Stable)\nRevision | 36aa3351631d175ee5346a1aaf74ef5d49abe308-refs/branch-heads/7339@{#1850}\nOS | Windows 11 Version 24H2 (Build 26100.6584)\n\n\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/remusris","@type":"Person","name":"remusris"},"datePublished":"2025-09-17T04:42:33Z","url":"https://github.com/TanStack/cli/issues/167"}
| 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:0481a551-f24c-0fca-0235-a08116a6be42 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0E4:33FBDD:24E39BA:308BE4D:6AF99BFF |
| html-safe-nonce | 38b871e1a5587c5c88b9e6d93dae7b1060feeb1e50d81f8f6a010b46f0f82b2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEU0OjMzRkJERDoyNEUzOUJBOjMwOEJFNEQ6NkFGOTlCRkYiLCJ2aXNpdG9yX2lkIjoiMjk1MzkwNjcyNjQ3MTU3MjQ3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f9f2593d1f347240f32c80e7f163341dd96f1a6d20b55f075a7ed2d9163d5b50 |
| hovercard-subject-tag | issue:3424633870 |
| 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/167/issue_layout |
| twitter:image | https://opengraph.githubassets.com/30c2f758e5bc185325fae1fe5e8f67e8ba178ede9687ec88fcfb5a6217f9d965/TanStack/cli/issues/167 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/30c2f758e5bc185325fae1fe5e8f67e8ba178ede9687ec88fcfb5a6217f9d965/TanStack/cli/issues/167 |
| og:image:alt | Which project does this relate to? Create Tanstack App Describe the bug I discovered a bug because I was trying to figure out why my code was building and deplying without errors then upon visiting... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | remusris |
| 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