-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-cli] Error: Cannot find module '../ink/components/progress-bar' #22109
Comments
If I had to guess, this would be the culprit. I'll try and put a PR together |
I've identified this and have a hotfix coming. No worries @herecydev, but thank you! |
@herecydev and @blainekasten so quick! Thank you for the sharp eye(s), couldn't figure it out myself. |
i have the same issue, shall downgrade gatsbyjs-cli or wating for the hotfix to be out? |
@abdokouta The fix has been merged, if I was a betting man I would say a release would be available imminently |
Went thru 2.10.3, 2.10.2 and 2.10.1, all have same error (and does not work). Would be cool if you could tag some "stable" version with "stable" tag 😄 |
@cstamas i have gatsby 2.8.29 on my local machine and it's working fine, can you try? |
This version is working for me on a new site. Thanks |
hm, strange
|
hm, maybe version of gatsby?
|
Heh, so... gatsby (dep present in package.json) declares dep on gatsby-cli 2.10.3 :) (why on earth?) |
For now running |
https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/package.json#L73 here it is. This commit |
But from an architectural perspective, gatsby-cli, that is needed to be installed globally, is also dependency of gatsby (used a dependency, as this is gatsby project). So, if that's the case, then basically gatsby is the one "defining" the version of gatsby-cli, NOT the one you install globally? |
Unfortunately, |
OOF! So sorry about this everyone.. I've released a new version that fixes this. Please update. Again, I'm so sorry for the damage this caused in lost time and hair-pulling! 😢 💜 |
@blainekasten Sorry! Can we reopen this issue? I'm still receiving the same error (similar to @danoszz) with the gatsby 2.19.34 and gatsby-cli 2.10.4. :) |
Heh, ok, so this fixed it
But am still puzzled by this (as shown by stack trace): if gatsby CLI is using globally installed gatsby-cli to execute gatsby's dependency gatsby-cli..... what's the point of the version you have globally installed gatsby-cli? |
Thanks @blainekasten ! It works for me, after the update! |
@mmafe please make sure that gatsby and gatsby-cli in package.json as following |
Fixed it for me as well, thanks for being so quick on the issue! |
Worst timing ever to have an version upgrade for me! Works now. Thanks @blainekasten ! |
Working for me too. Thanks for the quick fix. |
So the fix then implies, that globally and locally (in package.json as direct dependency, to be on safe side) should be kept in sync? |
Somehow, I had to manually remove
|
Thanks @danoszz - that did it!
|
Nice! Thank you for fixing! 🎉 |
@blainekasten
|
I'm also experiencing this when building my site on Netlify. I have cleared cache etc on Netlify. Locally the build works with no problems. gatsby-cli@2.12.35
|
@blainekasten @rennehir If |
Sorry friends! And thank you for reporting. I've got a fix up here. I'll try to get a release out today if I can get it merged. |
Published a new version to fix it, |
Error just showed up again with a Netlify build: Netlify ran: But eventually it ended with: |
I installed gatsby-cli@2.12.40 but the error still happened |
Had the same issue ( Fixed it by deleting |
@salomonMuriel @dragonza can you try the same thing that @mskrip did? |
@blainekasten I fixed it by including gatsby-cli in my package.lock. I'll try to run a build later today without it included and with @mskrip's solution instead to see what happens. |
I fixed it by updating gatsby |
After 4.5 hours of debugging, I'm thrilled that this thread is the thing that finally helped me fix my failing Netlify deploy. I fixed it by updating Gatsby |
Hey, @blainekasten Getting This error tried every method mentioned in this thread.
|
After running |
Received the same error today. Trying the
|
|
@blainekasten I tried, it fixed the error but I ran into another issue preventing me from running the local development.
I ran
Any idea how to fix this? |
Adding |
just use |
Description
After updating "gatsby-cli": "^2.10.3", it throws the following error.
Steps to reproduce
Update
gatsby-cli
to^2.10.3
and rungatsby develop
or any othergatsby ...
commandExpected result
Gatsby CLI should run every
gatsby ...
command as usual instead of breaking.Actual result
Environment
Unfortunately
gatsby info --clipboard
doesn't work either.The text was updated successfully, but these errors were encountered: