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 2256 0
-
匿
匿名用户 2天前
- 匿
-
飞
飞翔 2026-05-06
-
匿
匿名用户 2026-04-28
-
NI
nightelf 2026-04-23