The installation and configuration section in the docs is missing how to configure this plugin if you're using Next.js 14 and the new App Router.
I got it to work partially by doing the following:
npm install click-to-react-component -D -E
In my app/layout.tsx:
`import type { Metadata } from "next";
import { GeistSans } from "geist/font/sans";
import { GeistMono } from "geist/font/mono";
import { Providers } from "./providers";
import "./styles/globals.css";
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
The installation and configuration section in the docs is missing how to configure this plugin if you're using Next.js 14 and the new App Router.
I got it to work partially by doing the following:
npm install click-to-react-component -D -E
app/layout.tsx
:`import type { Metadata } from "next"; import { GeistSans } from "geist/font/sans"; import { GeistMono } from "geist/font/mono"; import { Providers } from "./providers";
import "./styles/globals.css";
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" className="h-full bg-skin-app-background" suppressHydrationWarning