Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: nested main tag when using pages router #1917

Open
Sveagruva opened this issue Jun 21, 2024 · 0 comments
Open

bug: nested main tag when using pages router #1917

Sveagruva opened this issue Jun 21, 2024 · 0 comments

Comments

@Sveagruva
Copy link

Provide environment information

initVersion: 7.34.0

Describe the bug

when choosing to use pages router you get two nested main tags
pages/index.tsx

const MyApp: AppType = ({ Component, pageProps }) => {
  return (
    <main className={GeistSans.className}>

pages/_app.tsx

      <Head>
        <title>Create T3 App</title>
        <meta name="description" content="Generated by create-t3-app" />
        <link rel="icon" href="/favicon.ico" />
      </Head>
      <main className="flex min-h-screen flex-col items-center justify-center bg-gradient-to-b from-[#2e026d] to-[#15162c]">

Reproduction repo

https://github.com/Sveagruva/t3-bug-main/tree/main/src/pages

To reproduce

choose pages router when using t3 app cli

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant