Skip to content
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

confilct with graphql v 15 in ./node_modules/graphql and v 14 in ./node_modules/apollo-language-server/node_modules/graphql #2440

Open
alesak opened this issue Sep 4, 2021 · 5 comments

Comments

@alesak
Copy link

alesak commented Sep 4, 2021

our package.json has dependency for

"graphql": "^15.5.0"
"apollo": "*"

which installs in version 14.7.0 in ./node_modules/apollo-language-server/node_modules/graphql
and version 15.5.2 in ./node_modules/graphql

cousing conflict when using npx apollo codegen:generate

"Cannot use GraphQLScalarType "ID" from another module or realm."

deleting ./node_modules/apollo-language-server/node_modules/graphql folder fixes the issue

I am wondering why is there different version when graphql is already installed in node_modules/graphql

@carmelid
Copy link

carmelid commented Sep 6, 2021

+1 having the same issue

@mchambaud
Copy link

+1

@cblaettl
Copy link

I've added a (temporary) postinstall script to get around this bug. #2415 (comment)

@alfie1104
Copy link

@cblaettl Thanks. As you said, by adding the postinstall script to my package.json file, I could solve the problem.

@formatlos
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants