Skip to content

Styles are imported in router.tsx and __root.tsx #125

@xofromthemoon

Description

@xofromthemoon

Which project does this relate to?

Create Tanstack App

Describe the bug

Hello,

I noticed that styles.css is imported in __root.tsx and router.tsx.

That's my cta:

{
  "projectName": "test",
  "mode": "file-router",
  "typescript": true,
  "tailwind": true,
  "packageManager": "npm",
  "git": true,
  "version": 1,
  "framework": "react-cra",
  "chosenAddOns": [
    "biome",
    "tanstack-query",
    "start"
  ]
}

Your Example Website or App

check cta above, happens with every fresh generated app

Steps to Reproduce the Bug or Issue

  1. Create a new app with Query, Start and Tailwind

Expected behavior

Should only import styles in __root.tsx

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