Title: [Feature] Please add `--template javascript` or `--template typescript` on `npx @tanstack/cli create my-app --router-only` · Issue #331 · TanStack/cli · GitHub
Open Graph Title: [Feature] Please add `--template javascript` or `--template typescript` on `npx @tanstack/cli create my-app --router-only` · Issue #331 · TanStack/cli
X Title: [Feature] Please add `--template javascript` or `--template typescript` on `npx @tanstack/cli create my-app --router-only` · Issue #331 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App (file-based routing) Describe the feature Please add --template jsx or --template tsx for additional the option on create tanstack-router app for instance (without --template should ...
Open Graph Description: Which project does this relate to? Create Tanstack App (file-based routing) Describe the feature Please add --template jsx or --template tsx for additional the option on create tanstack-router app ...
X Description: Which project does this relate to? Create Tanstack App (file-based routing) Describe the feature Please add --template jsx or --template tsx for additional the option on create tanstack-router app ...
Opengraph URL: https://github.com/TanStack/cli/issues/331
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature] Please add `--template javascript` or `--template typescript` on `npx @tanstack/cli create my-app --router-only`","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App (file-based routing)\n\n### Describe the feature\n\nPlease add `--template jsx` or `--template tsx` for additional the option on create tanstack-router app \n\nfor instance (without `--template` should use `tsx` as default): \n`npx @tanstack/cli create my-app --router-only --template jsx --framework react` -> use .jsx not .tsx with file-based routing\n`pnpx @tanstack/cli create my-app --router-only --template jsx --framework react` -> use .jsx not .tsx with file-based routing\nor\n`npx @tanstack/cli create my-app --router-only --framework react` -> use .tsx (default) not .jsx with file-based routing \n`pnpx @tanstack/cli create my-app --router-only --framework react` -> use .tsx (default) not .jsx with file-based routing\n\nOn my third create-app, I have to add `--template javascript` in order to show prompt `Would you like to use TypeScript? Yes/No`\n\n### Additional context\nNo idea why I got .tsx and .jsx in a single app, even i got 2 vite.config .ts and .js\n\u003cimg width=\"250\" height=\"902\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a4292938-8f92-4d25-ace0-fd118f1768cc\" />","author":{"url":"https://github.com/flyingduck92","@type":"Person","name":"flyingduck92"},"datePublished":"2026-02-05T15:20:13Z","url":"https://github.com/TanStack/cli/issues/331"}
| 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:c08fdb48-9d1b-7288-7484-d9ff4fccee5e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EAA6:2A274A:2D4A4F:3EA375:6AF9AA63 |
| html-safe-nonce | 6fc4324c5a9fb3497765e2bd4da9991ce7a096a74ed4b396b19e7532a0abb2b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUE2OjJBMjc0QToyRDRBNEY6M0VBMzc1OjZBRjlBQTYzIiwidmlzaXRvcl9pZCI6IjQ3MzQ2MDIyNjMzMzcyMTY2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3ae79ce14a28c27f764a722760dec5e9290f299bb8eacfacb4541858c5560ae5 |
| hovercard-subject-tag | issue:3902127411 |
| 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/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/efac32b972c747841bd0f2c35a751ac6adf7450888730d969103b810b6cd890f/TanStack/cli/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/efac32b972c747841bd0f2c35a751ac6adf7450888730d969103b810b6cd890f/TanStack/cli/issues/331 |
| og:image:alt | Which project does this relate to? Create Tanstack App (file-based routing) Describe the feature Please add --template jsx or --template tsx for additional the option on create tanstack-router app ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | flyingduck92 |
| 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