-
Notifications
You must be signed in to change notification settings - Fork 58
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
Type generator exists in middleware but is missing in Schema. #433
Comments
Update: I think the error wars next.js |
I'm running into the same error with anything above |
I just tested a Next.js project using
We need a reproduction repo / instructions to be able to debug it, I really tried to find this issue by myself, I just tested a lot of things and nothing fails |
Yeah sorry. I didn't dig deeper as I have things that I need to finish. If it shows up again I'll have a look as well. |
I'm encountering this same problem. I'm new to this biome, so not sure what is important info to relay, but I'm using graphql-middleware 6.1.6, graphql-shield 7.5.0, apollo-server-express 2.25.2, and neo4j-graphql-js 2.19.4. Relevant code bits (maybe). Note that makeAugmentedSchema comes from https://github.com/neo4j-graphql/neo4j-graphql-js (not sure if that's important):
|
I've been trying different versions of graphql-middleware and am seeing the same as @todda00: the problem starts with 6.1.0. |
… dependency graphql-middleware that requires version 6.0.10 (maticzav/graphql-middleware#433)
as already mentioned, @NoisyFlowers can you create a minimal reproduction repo? I already tried a lot of stuff trying to reproduce it and I couldn't |
Same problem, i have a repo to reproduce: https://github.com/wangel13/prisma-next-auth-graphql-starter
|
Me too, same error 🙋♂️
downgrading works :) |
Confirmed It's an issue with graphql-shield, since graphql-middleware ships an ESM version of the package and graphql-shield doesn't, it's just that graphql-middleware doesn't like duplicated versions of itself @maticzav |
Same problem here, it worked fine with
but after upgrading to next 12 we get the same above error. |
I have this issue and the fix presented above. changing the middleware loader to |
Facing same problem . Solved by downgrading middleware version 6.0.6. |
Facing same problem . Solved by downgrading middleware version 6.0.6. |
facing this problem tried downgrading, recently upgraded to nextjs 12 |
still same problem, |
Reverting to version 6.0.9 and pinned it. Fixed my problem. Would love to see this fixed so I can update to the latest version. |
To downgrade graphql-middleware package to 6.0.9, do command: With npm: |
it seems downgrading is the only way to fix this issue right now. Can this be fixed on graphql-middleware side or is it because of interactions with libraries? |
If you replace |
This worked for me! |
Any updates on this issue? |
Hi,
since the graphql-middleware update to 6.1.2 I get the following error:
MiddlewareError: Type generator exists in middleware but is missing in Schema.
I do use graphql-shield v 7.5.0
The text was updated successfully, but these errors were encountered: