Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xoxong opened this issue Mar 29, 2023 · 2 comments
Open

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

xoxong opened this issue Mar 29, 2023 · 2 comments

Comments

@xoxong
Copy link

xoxong commented Mar 29, 2023

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/[email protected]/node_modules/undici/lib/fetch/file.js (evalmachine.:5724:19)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/formdata.js (evalmachine.:5881:49)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/node_modules/undici/lib/fetch/body.js (evalmachine.:6094:35)
at __require (evalmachine.:14:50)
at ../../node_modules/.pnpm/[email protected]/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
Copy link
Author

xoxong commented Mar 29, 2023

有人遇到过吗

@guaguaguaxia
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants