Replies: 8 comments 13 replies
-
Hey @Stupidism — this is actually not a bug with Payload and more of a restriction with GraphQL itself. I assume that this is related to a custom GraphQL mutation or query that you have written. If you import types directly from a GraphQL dependency, this can arise. Notice in our docs how we provide Otherwise, if you follow the suggested GraphQL solution in the error message, and specify a I will convert this to a discussion and we can keep convo going there. But this is expected and there is little that Payload can do to rectify this, unfortunately. Got me a few times myself when having multiple copies / versions of GraphQL installed. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. I tried using Payload in a monorepo together with a Nuxt app, and I get this error. I haven't installed or used anything graphql-related in the Nuxt app, so I'm quite confused |
Beta Was this translation helpful? Give feedback.
-
@jmikrut Sorry for the late response. Here's the repro repo: https://github.com/Stupidism/nx-payload-demo. Can you take a look? This is purely an empty project but with the dependencies from my real project. |
Beta Was this translation helpful? Give feedback.
-
Do npm ls graphql to see the different versions. Then try to add overrides in package.json (https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides) For example I did this :
|
Beta Was this translation helpful? Give feedback.
-
I migrated to pnpm and did |
Beta Was this translation helpful? Give feedback.
-
I believe above answers about |
Beta Was this translation helpful? Give feedback.
-
I finally made time to address the express-graphql dependency! We're working to review and release this soon. |
Beta Was this translation helpful? Give feedback.
-
@DanRibbens I encountered the same problem when upgrading from v1.11.1 to v2.3.1. Is there any workaround? Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
I'm using payload in a nx monorepo, I met this error after upgrading payload to the newest version. And I found it was upgraded in 1.4.0.
Steps to Reproduce
https://github.com/Stupidism/nx-payload-demo.
git clone [email protected]:Stupidism/nx-payload-demo.git
PUPPETEER_SKIP_DOWNLOAD=1 CYPRESS_INSTALL_BINARY=0 npm install
nx run seo-payload:serve
Other Details
Beta Was this translation helpful? Give feedback.
All reactions