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

The remote WPGraphQL schema hasn't changed but local generated type definitions have. This is a bug, please open an issue on Github and include the following text.. #37937

Closed
2 tasks done
ThePrimeDev opened this issue Apr 13, 2023 · 1 comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@ThePrimeDev
Copy link

Preliminary Checks

Description

Changed type defs:

Typename WpUser diff:
{
kind: "OBJECT"
config: {
name: "WpUser"
fields: {

  •  shouldShowAdminToolbar: {
    
  •    type: "Boolean"
    
  •    description: "Whether the Toolbar should be displayed when the user is viewing the site."
    
  •  }
     avatar: {
       type: "WpAvatar"
       description: "Avatar object for user. The avatar object can be retrieved in different sizes by specifying the size argument."
     }
     capKey: {
       type: "String"
       description: "User metadata option name. Usually it will be "wp_capabilities"."
     }
     capabilities: {
       type: "[String]"
       description: "A list of capabilities (permissions) granted to the user"
     }
     comments: {
       type: "WpUserToCommentConnectionType"
       description: "Connection between the User type and the Comment type"
     }
     databaseId: {
       type: "Int!"
       description: "Identifies the primary key from the database."
     }
     description: {
       type: "String"
       description: "Description of the user."
     }
     email: {
       type: "String"
       description: "Email address of the user. This is equivalent to the WP_User->user_email property."
     }
     extraCapabilities: {
       type: "[String]"
       description: "A complete list of capabilities including capabilities inherited from a role. This is equivalent to the array keys of WP_User->allcaps."
     }
     firstName: {
       type: "String"
       description: "First name of the user. This is equivalent to the WP_User->user_first_name property."
     }
     id: {
       type: "ID!"
       description: "The globally unique identifier for the user object."
     }
     isContentNode: {
       type: "Boolean!"
       description: "Whether the node is a Content Node"
     }
     isTermNode: {
       type: "Boolean!"
       description: "Whether the node is a Term"
     }
     lastName: {
       type: "String"
       description: "Last name of the user. This is equivalent to the WP_User->user_last_name property."
     }
     locale: {
       type: "String"
       description: "The preferred language locale set for the user. Value derived from get_user_locale()."
     }
     name: {
       type: "String"
       description: "Display name of the user. This is equivalent to the WP_User->dispaly_name property."
     }
     nicename: {
       type: "String"
       description: "The nicename for the user. This field is equivalent to WP_User->user_nicename"
     }
     nickname: {
       type: "String"
       description: "Nickname of the user."
     }
     pages: {
       type: "WpUserToPageConnectionType"
       description: "Connection between the User type and the page type"
     }
     posts: {
       type: "WpUserToPostConnectionType"
       description: "Connection between the User type and the post type"
     }
     registeredDate: {
       type: "String"
       description: "The date the user registered or was created. The field follows a full ISO8601 date string format."
     }
     roles: {
       type: "WpUserToUserRoleConnectionType"
       description: "Connection between the User type and the UserRole type"
     }
     slug: {
       type: "String"
       description: "The slug for the user. This field is equivalent to WP_User->user_nicename"
     }
     uri: {
       type: "String"
       description: "The unique resource identifier path"
     }
     url: {
       type: "String"
       description: "A website url that is associated with the user."
     }
     username: {
       type: "String"
       description: "Username for the user. This field is equivalent to WP_User->user_login."
     }
     nodeType: "String"
    
    }
    description: "A User object"
    extensions: {
    infer: false
    }
    interfaces: [
    "WpNode"
    "WpUniformResourceIdentifiable"
    "WpCommenter"
    "WpDatabaseIdentifier"
    "Node"
    ]
    }
    }

not finished createSchemaCustomization - 1.794s

Reproduction Link

https://example.com/no-reproduction

Steps to Reproduce

  1. a
  2. b
  3. c
    ...

I dont know how 2 reproduce it, it said that It would be good to report it.

Expected Result

Expected result: The npm run develop command runs successfully and the program starts.

Actual Result

I got this error.

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor         
  Binaries:
    Node: 18.15.0 - E:\NodeJS\node.EXE
    npm: 8.12.1 - E:\NodeJS\npm.CMD
  Languages:
    Python: 3.10.9
  Browsers: {}
  npmPackages:
    gatsby: ^5.8.1 => 5.8.1 
    gatsby-plugin-image: ^3.8.0 => 3.8.0 
    gatsby-plugin-sass: ^6.8.0 => 6.8.0 
    gatsby-plugin-sharp: ^5.8.1 => 5.8.1 
    gatsby-source-wordpress: ^7.8.0 => 7.8.0 
    gatsby-transformer-sharp: ^5.8.0 => 5.8.0

Config Flags

No response

@ThePrimeDev ThePrimeDev added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 13, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 13, 2023
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 13, 2023
@LekoArts
Copy link
Contributor

Duplicate of #37931 - and please provide a minimal reproduction.

@LekoArts LekoArts closed this as not planned Won't fix, can't repro, duplicate, stale Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants