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'
}
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'
}