Title: [Bug] Initializing tanstack start project with clerk causes an import error · Issue #324 · TanStack/cli · GitHub
Open Graph Title: [Bug] Initializing tanstack start project with clerk causes an import error · Issue #324 · TanStack/cli
X Title: [Bug] Initializing tanstack start project with clerk causes an import error · Issue #324 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App Describe the bug Hello I started a new project using the cli command pnpm create @tanstack/start@latest I selected ESLint as a toolchain I selected Nitro as a deployment adapter And ...
Open Graph Description: Which project does this relate to? Create Tanstack App Describe the bug Hello I started a new project using the cli command pnpm create @tanstack/start@latest I selected ESLint as a toolchain I sel...
X Description: Which project does this relate to? Create Tanstack App Describe the bug Hello I started a new project using the cli command pnpm create @tanstack/start@latest I selected ESLint as a toolchain I sel...
Opengraph URL: https://github.com/TanStack/cli/issues/324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] Initializing tanstack start project with clerk causes an import error","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App\n\n### Describe the bug\n\nHello\nI started a new project using the cli command pnpm create @tanstack/start@latest\nI selected ESLint as a toolchain\nI selected Nitro as a deployment adapter\n\nAnd for add-ons i selected:\n\nClerk\n\nExample:\nNone\n\nDatabase Provider:\nPostgreSQL\n\ninside the` routes/_root.tsx` file\nthere is a a bad import \n`import ClerkProvider from './src/integrations/clerk/provider'`\nThis causes typescript to throw the error\n`Cannot find module './src/integrations/clerk/provider' or its corresponding type declarations.`\nClerkProvider is imported from `@clerk/clerk-react`\nWhile the module being imported should be AppClerkProvider initialized inside `src/integrations/clerk/provider`\nThis also means the `\u003cClerkProvider>` inside ` routes/_root.tsx` inside the html body should be changed as well\n\nSimilarly inside `src/components/Header.tsx` `ClerkHeader` is imported from `'./src/integrations/clerk/header-user.tsx'` where `HeaderUser` should have been imported instead from `src/integrations/clerk/header-user`\nThat issue is also causing a typescript error crashing the site\n\n\n### Your Example Website or App\n\n.\n\n### Steps to Reproduce the Bug or Issue\n\nInitialize a project using pnpm create @tanstack/start@latest\nSelect Clerk or Better Auth from thjje add-ons list\nRun the project \n\n### Expected behavior\n\nRun without errors\n\n### Screenshots or Videos\n\n_No response_\n\n### Platform\n\n- OS: Windows\n- Browser: Chrome\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/JadWS","@type":"Person","name":"JadWS"},"datePublished":"2026-02-03T12:56:34Z","url":"https://github.com/TanStack/cli/issues/324"}
| 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:c074b388-3edf-eb20-e16f-952da754850d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA12:D732D:19773DF:22F43E3:6AF9AA81 |
| html-safe-nonce | b2d49abaf2e9d84dce90a0f437728ed498e125beadeb2378fc91cd084ed1466f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTEyOkQ3MzJEOjE5NzczREY6MjJGNDNFMzo2QUY5QUE4MSIsInZpc2l0b3JfaWQiOiIzOTcxMDc0NTkyNzA4NjAyNDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c03dc7e2ea15a867461ea0ce27df7f96d462949a1696b3a9aa27abfb6a981666 |
| hovercard-subject-tag | issue:3891146296 |
| 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/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4600a89dea65a2a8d25f7c74f1d837faa60305d478d9b461844eeb88339da098/TanStack/cli/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4600a89dea65a2a8d25f7c74f1d837faa60305d478d9b461844eeb88339da098/TanStack/cli/issues/324 |
| og:image:alt | Which project does this relate to? Create Tanstack App Describe the bug Hello I started a new project using the cli command pnpm create @tanstack/start@latest I selected ESLint as a toolchain I sel... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JadWS |
| 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