Open chenrui333 opened 3 years ago
anybody tried this on an arm64/M1? solutions from above didn't work for me.
@sescotti I use M1 and this solution worked for me https://github.com/apollographql/apollo-tooling/issues/2415#issuecomment-998920583
Rover CLI doesn't support codegen yet
From what I understand it isn't going to. Apollo recommends graphql-code-generator but I believe it doesn't cover quite every use case.
Hi everyone , i had a same issue , just changed NODE version from 18 to 14 , it is worked for me , but i think this is not optimal way
Hi everyone , i had a same issue , just changed NODE version from 18 to 14 , it is worked for me , but i think this is not optimal way
Did you try this? https://github.com/apollographql/apollo-tooling/issues/2415#issuecomment-1190682198
Hi everyone , i had a same issue , just changed NODE version from 18 to 14 , it is worked for me , but i think this is not optimal way
Did you try this? #2415 (comment)
Honestly not , cause it i used this at tutorial , when i will need this at real project i will search for real solutions :)
Thanks for the above...the following worked for me...
RUN npm install -g apollo@2.34.0 graphql@16.6.0
running from Docker
FROM node:16.17.0
RUN npm install -g npm@8.15.0
This repo has been deprecated (see this comment)
Another workaround if you only use the
apollo service:*
commands is switching to Apollo Rover because these commands are deprecated in Apollo CLI.
This was the solution that worked for me. Once I included the deprecated apollo
package as a dependency, that caused the unzipped AWS lambda to be too large. Using the @apollo/rover
dev dependency worked without problems.
// before ❌
npx apollo service:push <options>
// after ✅
rover subgraph publish <options>
Thank you @sergpetrov your solution to install graphql globally worked perfectly for me too npm install -g graphql
Below solution worked for me https://www.appsloveworld.com/nodejs/100/127/error-cannot-find-module-graphql-validation-rules-possibletypeextensions we just need to run sudo npm install -g graphql
This worked for me:
"engines": {
"node": ">=16"
},
"dependencies": {
"graphql": "^16.8.1"
},
"devDependencies": {
"apollo": "2.33.4",
"apollo-language-server": "1.26.3"
}
npm install -g graphql and npm install -g apollo worked for me
A super hacky way to run apollo@2 schema:download
using npx today:
npx apollo@2 schema:download
and observe the path in the error
/Users/foobar/.npm/_npx/XXXXXXXXXXXXXXXX
cd /Users/foobar/.npm/_npx/XXXXXXXXXXXXXXXX
npm install apollo@2.33.4 apollo-codegen-core@0.40.3 apollo-language-server@1.26.3
npx apollo@2 schema:download
should now work 🎉 Apollo does not provide a schema download in the latest v3? I did not follow and I am still on the trick of using the v2
Apollo does not provide a schema download in the latest v3? I did not follow and I am still on the trick of using the v2
Correct, that functionality was moved to our more capable CLI, Rover, which has a command rover graph introspect
Will this be fixed before GTA 6?
When I was trying to upgrade the formula to use the latest 2.33.6 release, it looks like the apollo command does not work anymore.
relates to https://github.com/Homebrew/homebrew-core/pull/83152