Skip to content

Official command to scaffold the project has deprecated apis usage and types errors #155

@amanmavai

Description

@amanmavai

Which project does this relate to?

Create Tanstack App

Describe the bug

when I use the command npx create-tsrouter-app@latest my-app --template file-router to scaffold the tanstack router project, it has multiple issues by default,

  1. its using the deprecated api TanStackRouterVite
  2. its having type errors on 'node:path' and '__dirname'

Your Example Website or App

Initial project just after creation from the command npx create-tsrouter-app@latest my-app --template file-router

Steps to Reproduce the Bug or Issue

Project just after creation from the command npx create-tsrouter-app@latest my-app --template file-router

Expected behavior

Expecting that everything works out of the box and is using latest packages and recommended apis by default

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions