taTanStack
GitHubrouterWorkspace
GitHub
  • CI Pipeline Executions
    • Current executionFailed
      fix/router-generator-plain-ts-route-scaffolding
    • Runs and Agents
    • TimelineBeta
    • Configuration
    • Self-Healing CI
    • Project Graph
    • Circular DependenciesEnterprise
    • Resource Usage
    • Analysis
    • ConformanceEnterprise
  • Runs
    • Current runFailed
    • Tasks
    • Resource Usage
Insights
  • Compare tasks
  • Analytics
    fix(router-generator): scaffold plain TypeScript routes without JSX Creating an empty `.ts` file within the routes folder broke all route generation with the error: `SyntaxError: Missing semicolon. (8:19)`. The generator scaffolds empty route files with the targets built in templates, which for React & Solid includes a JSX hello world component. This then fails to parse for plain TypeScript files due to Babel's jsx plugin being omitted for `.ts` filenames. This throws an error before the file is written, so the route file remains empty, and the route tree isn't generated until the file is deleted or populated by hand. This change opts to scaffold plain TypeScript files with no component instead, as a `.ts` file is almost always a server route: ``` import { createFileRoute } from '@tanstack/react-router' export const Route = createFileRoute('/api/foo')({}) ``` Vue templates and custom user scaffolding remain unchanged.
    nx affected --targets=test:eslint,test:unit,test:e2e,test:types,test:build,build --parallel=3
Failed
read access token used
269ed1948481
<1%

Failed tasks

1 of 625 failed.

<1%

Potential flaky tasks

1 of 625 tasks retried.

6%

Cache hits

35 of 625 tasks used cache.

85%

Distribution saved time

19m 21s instead of 2h 09m 30s.

© 2026 - Nx Cloud

Terms of ServicePrivacy PolicyChangelogStatusDocsContact Nx CloudPricingCompany@NxDevTools
GitHubrouterWorkspace