Next.js使用MUI报错Add the "use client" directive at the top of the file to use it.
在Next.js中使用MUI会报错:TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. 解决方法是加上"use client"标签。
2023-11-05 2086 0
-
CY
cyan123 5天前
-
匿
匿名用户 2026-04-07
-
LM 2026-03-28
- 匿
-
匿
匿名用户 2026-02-15