#weird next/head warning

45 messages · Page 1 of 1 (latest)

solemn crater
#

I am not using next/head... It happened after I imported next/image in my page.tsx.

heavy slate
#

You might want to try a Next/React discord server for better chance of help

solemn crater
bitter flame
solemn crater
#
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>
  );
}
bitter flame
solemn crater
bitter flame
#

hm

bitter flame
solemn crater
#

on vscode

bitter flame
#

try to build

solemn crater
#

ok

solemn crater
bitter flame
#

npm run start

bitter flame
solemn crater
bitter flame
#

Its building successfully but its not running on dev

solemn crater
#

Why is that?

#

I'm use to 'npm run dev' just from following tutorial projects

bitter flame
#

Try this.

bitter flame
solemn crater
bitter flame
solemn crater
#

Which is probably the issue

bitter flame
solemn crater
#

Yeah

bitter flame
#

oh

bitter flame
solemn crater
bitter flame
bitter flame
solemn crater
#

I added it to next.config and re ran the dev

bitter flame
#

Can you send your config?

solemn crater
#
/** @type {import('next').NextConfig} */
const nextConfig = {};
dangerouslyAllowSVG: true;
export default nextConfig;
bitter flame
bitter flame
#

They will be better help than me

#

gg/nextjs