guaguaguaxia / weekly_report

简单描述工作内容,帮你生成完整周报
https://weeklyreport.avemaria.fun
3.19k stars 476 forks source link

点击生成的时候,接口500,终端报错如下 #56

Open xoxong opened 1 year ago

xoxong commented 1 year ago

error - Class extends value undefined is not a constructor or null

This might be caused by a React Class Component being rendered in a Server Component, React Class Components only works in Client Components. Read more: https://nextjs.org/docs/messages/class-component-in-server-component at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/file.js (evalmachine.:5724:19) at require (evalmachine.:14:50) at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/formdata.js (evalmachine.:5881:49) at require (evalmachine.:14:50) at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/body.js (evalmachine.:6094:35) at require (evalmachine.:14:50) at ../../node_modules/.pnpm/undici@5.11.0/node_modules/undici/lib/fetch/response.js (evalmachine.:6510:49) at require (evalmachine.:14:50) at (evalmachine.:11635:30) at requireFn (file:///Users/yangchangxing/1DATA/SNX/weekly_report/node_modules/next/dist/compiled/edge-runtime/index.js:1:7079) { name: 'TypeError' }

xoxong commented 1 year ago

有人遇到过吗

guaguaguaxia commented 1 year ago

有个类似的issue,看提示是本地环境的问题