You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mixing ECMA script modules (via import) and CommonJS modules in node.js (V14.5.0) then GraphQL complains that duplicate GraphQL modules cannot be used together.
One consequence of this is that it is to my knowledge impossible to use express-graphql together with import syntax. That is seemingly because "import" pulls other code than the "require" that express-graphql will use.
The text was updated successfully, but these errors were encountered:
Hello! New here and I'd like to look into this if that's okay. Do you happen to have a min repro example? I haven't seemed to run into this issue myself using express-graphql v0.12.0 with import syntax and requiring graphql v15.4.0 as cjs in the same project, so I want to make sure I'm understanding the question / set up.
I've seen similar errors before when mixing versions of graphql, unsure if related.
When mixing ECMA script modules (via import) and CommonJS modules in node.js (V14.5.0) then GraphQL complains that duplicate GraphQL modules cannot be used together.
One consequence of this is that it is to my knowledge impossible to use express-graphql together with import syntax. That is seemingly because "import" pulls other code than the "require" that express-graphql will use.
The text was updated successfully, but these errors were encountered: