#weird next/head warning
45 messages · Page 1 of 1 (latest)
You might want to try a Next/React discord server for better chance of help
layout.tsx?
No page.tsx
Can you send layout.tsx
import type { Metadata } from "next";
import { Inter, Space_Grotesk} from "next/font/google";
import "./globals.css";
import Navbar from "@/components/Navbar";
const inter = Inter({ subsets: ['latin'] })
const spaceGrotesk = Space_Grotesk({
subsets: ['latin'],
weight: ['300', '400','500', '600', '700']
})
export const metadata: Metadata = {
title: "PriceWise",
description: "Track product prices effortlessly and save money on your online shopping.",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={inter.className}>
<main className="max-w-10xl mx-au">
<Navbar />
{children}
</main>
</body>
</html>
);
}
Which nextjs version are you using?
hm
Are you getting this error on build or on dev?
oh yes it is npm run dev sorry
ok
now what?
npm run start
.
Thank you very much bro
Its building successfully but its not running on dev
Try this.
Try this and tell me if it is working.
Nah, same error
Are you watching tutorial and make it? Did you check that next js version?
He is using an older version
Which is probably the issue
13??
Yeah
oh
I understand finally now update your next config
How do I update?
dangerouslyAllowSVG: true I think you have to add in next.config.js So I am not sure myself.
Didn't do anything
?
I added it to next.config and re ran the dev
Can you send your config?
/** @type {import('next').NextConfig} */
const nextConfig = {};
dangerouslyAllowSVG: true;
export default nextConfig;
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
dangerouslyAllowSVG: true,
}
}
export default nextConfig;
Still no change
I don't know this. You can ask in nextjs discord server
They will be better help than me
gg/nextjs