Graphql dependency in monorepo #4349
              
                Unanswered
              
          
                  
                    
                      rahul22048
                    
                  
                
                  asked this question in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys,
It would be of great help if you guys can answer this question. We have a monorepo package structure like you guys have. There is some problem with 'graphql' dependency. While starting a server, i am getting below error:-
/Users/rahusi/Desktop/Repos/graphql-kernel/packages/gqlkernel-server-express/node_modules/apollo-server-core/dist/ApolloServer.js:234
throw new Error(errors.map(error => error.message).join('\n\n'));
^
Error: Cannot use GraphQLScalarType "JSON" 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.
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
Have you guys come across such issues? And in case yes, how did you resolve this one?
Beta Was this translation helpful? Give feedback.
All reactions