Skip to content

Popover component not working when clicked #1861

Closed Answered by ayush0402
ayush0402 asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed it 🎉. Upon comparison with working code-bases, I realised it was something different RootLayout.

correct RootLayout
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'

const inter = Inter({ subsets: ['latin'] })

export const metadata: Metadata = {
  title: 'Create Next App',
  description: 'Generated by create next app',
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <body className={inter.className}>{children}</body>
    </html>
  )
}
Failing RootLayout
import './globals.css'

export const metadata = {
  title: 'Create Next App',
  description: 'Gen…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ayush0402
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants