Open sardorb3k opened 11 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
Hi, has there been any update on this since? I am facing the same and unable to get through. My complete theme is lost and no matter what I do now, going back to my last commit, it is the same basically. Can not make it work.
node_modules\@material-tailwind\react\context\theme.js (1:1775) @ _index
layout.ts