-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Element style not allowed as child of element body #62
Comments
Hi there,
this happens on the nextjs 14.0.4 |
I have the same issue as @vnevermore. |
This might be the solution, it works on my end. Instead of placing import NextTopLoader from 'nextjs-toploader';
export default function RootLayout({ children }) {
return (
<html lang='en'>
<body>
<NextTopLoader />
{children}
</body>
</html>
);
} Place it inside the import NextTopLoader from 'nextjs-toploader';
export default function RootLayout({ children }) {
return (
<html lang='en'>
<head>
<NextTopLoader />
</head>
<body>{children}</body>
</html>
);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Theres a bad practise happening which leads to failure of html murkup validator test, and it can harm overall website(s) health.
<style> elements can't be child of the body elementThe text was updated successfully, but these errors were encountered: