Runtime Error: TypeError: document.querySelector is not a function
Unanswered
Whiteleg shrimp posted this in #help-forum
Whiteleg shrimpOP
Hi, I'm getting this error for a while now when I press F5. It's weird and I have no idea where is it coming from or how to even debugged it. Happens on all pages, even if there is just a div and an empty root layout. The stack trace also doesn't help. Any idea or suggestion is welcome because I don't know what to do 😦
4 Replies
Whiteleg shrimpOP
This is literally my RootLayout code and it is still happening
export default function RootLayout(props: RootLayoutProps) {
return (
<html lang="es" suppressHydrationWarning>
<body>h1</body>
</html>
)
}
Whiteleg shrimpOP
This only happens on development, with or without turbopack