-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 Turbo module v1.2.9 with Github Actions #1263
Comments
@alfergus0n it seems https://github.com/alfergus0n/whatever/runs/6497062661?check_suite_focus=true and https://github.com/alfergus0n/whatever do not exist - can you get the example back up? |
Hi, experienced a similar problem. I don't have a repro or a series of actions I can share I'm afraid, but the error experienced in an Temporarily reverted to 1.2.8, which is working fine for me as well. |
I had set it to private, my bad. it's public now, should be accessible now @markhughes |
Weird - 1.2.8 stopped working for me today, but bumping to 1.2.9 works now? 😕 |
Is it possible that you already have a cache in place and its not installing turbo? Try removing this step or try again now (as I assume the cache has expired) - you could change this so it will always run if your lock file changes |
Impossible I think, since turbo would then be installed within the cached modules Plus it said this when it attempted to retrieve cache:
it also shows that it is running Having that said, it is now mysteriously working, similarly to @ryanlewis. So no idea what was going on or what recently changed but now it is. Maybe it was some caching issue on github's end or something, where this version just wasn't available yet since it recently came out. anyway closing. thank you. |
I was referring to perhaps before (as you had the branch set to master -> main -> master) so perhaps it got cached on a branch without the dependency? I might be wrong, would be cool to find the issue though! good luck :) |
This happens every once in a while for me as well. The solution is always the same: set the version in package.json to something else (it doesn't matter what). It might be cache related, but honestly didn't have enough insight to investigate. I'm running the setup-node@v3 action with caching enabled and then - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci |
could be related to this #1749 |
but yes, changing the version (as in the version of Turborepo), makes it work magically. Which isn't a legitimate solution, just a quirky fix. unfortunately |
Ok, I figured it out on my end: So for whatever reason, when doing some sort of action related to the
This seems to be the actual culprit. Why it behaves this way, I have little to no insight. But that is what seems to be causing this missing turbo in whatever environment, in my case it was Linux. Note: i was not touching turbo repo at all when this occurred. In fact, i was developing a native module for React Native. Somehow or another package-lock.json was altered in that process and it removed those two critical fields, not just for Linux but for other environments as well i noticed. Something to keep in mind. I will in the future be aware of any turbo related changes in the lock, even when I'm not doing anything to turbo. Specifically those two fields. |
This is happening to me too.
My github action:
Error :
The only fix is to delete my package-lock and not commit it. FYI, it happens with by npm install and npm ci |
Which makes sense. For those who don't have the option of not committing a |
What version of Turborepo are you using?
1.2.9
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Linux
Describe the Bug
When using Turbo v1.2.9 with Github Actions, i get:
npm ERR! Error: Cannot find module 'turbo
I revert back to 1.2.5, and it works fine as expected.
Expected Behavior
For turbo 1.2.9 to be found and used while using Github Actions.
To Reproduce
Simply use v1.2.9 in a npm package.json, turbo isn't found when installing using:
npm ci
if you wanna see: https://github.com/alfergus0n/whatever/runs/6497062661?check_suite_focus=true
bare bones project, i'm only using it to test run turbo.
Here is it working with 1.2.5, same exact setup in essence: https://github.com/alfergus0n/whatever/actions/runs/2348214585
edit: Also seems to work with 1.2.8 just fine, just tested.
The text was updated successfully, but these errors were encountered: