小编Ahm*_*oya的帖子

“组件”不能用作 JSX 组件

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

typescript next.js

12
推荐指数
1
解决办法
1万
查看次数

如何增加strapi graphql中的最大操作深度

这是 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)

graphQL Strapi 中的最大操作数超出

javascript graphql strapi

4
推荐指数
1
解决办法
2336
查看次数

标签 统计

graphql ×1

javascript ×1

next.js ×1

strapi ×1

typescript ×1