面试鸭项目中的代码冲突

https://github.com/liyupi/mianshiya-next/blob/master/mianshiya-next-frontend/src/app/banks/page.tsx

image.png 这个文件中同时出现了"use server"和"message.error",我在我的项目里也这么写的,但是运行的时候报错啊,提示为:" ⨯ Error: Attempted to call error() from the server but error is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component." 鱼皮哥怎么解决的?
0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
Jingzhen
下载 APP