-
Notifications
You must be signed in to change notification settings - Fork 470
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
cannot find module error for apollo-cli 2.33.{6,7,8,9} #2415
Comments
Met same issue, but downgrading to 2.33.4 didn't help |
I tried going all the way back to 2.20.0 just for kicks and it's broken with the same error:
I thought using |
I am having the same issue--downgrading does not help. |
I believe there's no |
@ralexandr @andrewlague @stephenh How did you downgrade? |
|
Pinning |
@Effanuel did you use |
Just add apollo with a veraion to devdeps |
Is there any solution except downgrading nodejs and/or npm's and/or apollo's versions ? |
package.json:
|
On Node
This may be specific to my case, but it results in this fix not working for me (everything worked as of a week ago, and nothing in my code has changed). Presumably this is an internal dependency issue within Apollo? |
Hi, we were stuck on this and was blocking us. This is what worked for us:
Switching to yarn worked for us somehow, hope this can help. |
This issue is caused by There are 2 options to fix this issue here:
|
Any updates on this? |
For us, downgrading to |
I'm having the same issue I tried to use npx to use the latest then tried with
|
Okay made it work guys, using the latest version of the package but using
The moment I changed node version with nvm everything worked 🙏 |
Unpin when the following PR is fixed. apollographql/apollo-tooling#2415
I've tried all of the above and this is still not working for me. Node is version |
Having this issue all of a sudden as well. Tried pinning |
Got tired of waiting and the proposed fixes didn't work for me, so I switched to graphql-code-generator. Differences:
Edit: I think I've got a good configuration now: I've moved the |
I've added the following postinstall script to the scripts section of my
|
I had the same issue with our CI workflow and the downgrading didn't help. |
I'm running into this issue as well, posting for notifications and updates 👍 I was following this tutorial on a fresh project. https://www.apollographql.com/blog/tooling/apollo-codegen/typescript-graphql-code-generator-generate-graphql-types/ Locking the versions and installing |
fwiw @LukeAvsec-DarwinHomes 's solution is working for me w/ node |
I think issue is on mac devices I've tried on a windows PC instead of mac with following versions apollo/2.34.0 win32-x64 node-v10.15.3 That worked for me |
This is working well, thanks! |
Which will happen first: this gets fixed, or George R.R. Martin releases his next GoT book? |
anybody tried this on an arm64/M1? solutions from above didn't work for me. |
Consider using the Rover CLI instead of a deprecated tool. |
Rover CLI doesn't support codegen yet |
@sescotti I use M1 and this solution worked for me #2415 (comment) |
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 |
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...
running from Docker
|
This repo has been deprecated (see this comment) |
This was the solution that worked for me. Once I included the deprecated
|
Thank you @sergpetrov your solution to install graphql globally worked perfectly for me too |
Below solution worked for me |
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 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 |
Will this be fixed before GTA 6? |
any updates on this? 🙃 |
This thread has gotten quite long so let me summarize various comments already posted. This repo and the CLI package If you are trying to run these various commands, you can replace them with either other OSS tooling or a Rover command
The one remaining item we have it for |
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 Homebrew/homebrew-core#83152
The text was updated successfully, but these errors were encountered: