Skip to content

GraphQL breaks completely after upgrading on 3.64.0 with postgres #14666

@robertosilvestrigotham

Description

@robertosilvestrigotham

Describe the Bug

GraphQL is completely broken in Payload 3.64.0, even on a fresh, clean installation.
Starting from an empty project, installing Payload CMS with pnpm and configuring PostgreSQL, the GraphQL endpoint immediately fails with a 500 error on every request.
No custom code or additional configuration is involved.
Downgrading to 3.63.0 restores normal GraphQL functionality.

Link to the code that reproduces this issue

https://github.com/robertosilvestrigotham/payload-cms-3-64-graphql-broken

Reproduction Steps

  • Install blank cms pnpx create-payload-app@latest -t blank
  • Chose Postgres db
  • Insert connnection string
  • Complete the installation
  • lunch the app with pnpm run dev
  • open postman
  • create new graphql
  • try to fetch schema or try a blank query ( same result)

Error printed:

Error: Cannot use GraphQLScalarType "EmailAddress" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
at (https://yarnpkg.com/en/docs/selective-version-resolutions)
at new Promise ()
POST /api/graphql 500 in 5412ms

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

Binaries:
  Node: 22.20.0
  npm: 10.9.3
  Yarn: N/A
  pnpm: 10.18.2
Relevant Packages:
  payload: 3.64.0
  next: 15.4.7
  @payloadcms/db-postgres: 3.64.0
  @payloadcms/drizzle: 3.64.0
  @payloadcms/graphql: 3.64.0
  @payloadcms/next/utilities: 3.64.0
  @payloadcms/richtext-lexical: 3.64.0
  @payloadcms/translations: 3.64.0
  @payloadcms/ui/shared: 3.64.0
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.6.0: Mon Aug 11 21:16:31 PDT 2025; root:xnu-11417.140.69.701.11~1/RELEASE_ARM64_T6030
  Available memory (MB): 36864
  Available CPU cores: 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions