material-tailwind
material-tailwind copied to clipboard
Nextjs 13
node_modules@material-tailwind\react\context\theme.js (1:1775) @ _index
layout.ts
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