'Component' cannot be used as a JSX component
Run Code Online (Sandbox Code Playgroud)
错误位于 nextjs 的 _app.tsx 文件内。从昨天开始,我试图解决我在 nextjs-typescript 应用程序中部署 vercel 时遇到的这个问题。但无法解决它。这个错误是突然发生的,而且不是我这边的。任何想法?
./pages/_app.tsx:76:14
Type error: 'Component' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
Type 'Component<{}, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<{}, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type …Run Code Online (Sandbox Code Playgroud) 这是 Strapi v4 的 graphql Playground 中的问题。说:
"error": {
"errors": [
{
"message": "'' exceeds maximum operation depth of 7",
"locations": [
{
"line": 19,
"column": 19
}
],
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
...
Run Code Online (Sandbox Code Playgroud)