Open sardorb3k opened 7 months ago
layout.ts
is a server component, cannot be set as client.
You can create a components/index.ts
:
"use client";
import { ThemeProvider } from "@material-tailwind/react";
export { ThemeProvider };
and in layout.ts
you import the ThemeProvider
from @/components/
.
You can do the same with other components.
I did follow the docs properly about Nextjs 13, and still getting that same error
Facing same error on my end as well
node_modules\@material-tailwind\react\context\theme.js (1:1775) @ _index
layout.ts![image](https://github.com/creativetimofficial/material-tailwind/assets/95975648/dca80799-f1b7-4ecd-bc1a-deb2d3c1b3f0)