-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WARNING no output files found for task @repo/ui#lint. Please check your outputs
key in `turbo.json
#9291
Comments
@jahands thanks for the report, we'll take a look asap |
I get this warning too turbo 2.2.1 |
Just encountered the same issue |
Can someone point out in the docs how I can disable all warnings? |
You can use empty ouputs to disable the warning: {
outputs: []
} |
Doesn't work to me |
I've found out in my case, I can suppress all warnings, including the main issue here. It's in the environment variable docs:
e.g. |
@psychobolt that setting will disable the warning when global turbo cannot find a locally installed version of turbo to use - it will not globally disable all warnings. This issue should now be fixed in latest! |
I'm getting this warning with Turbo 2.2.3, Node 18.18.2, MacOS Sequoia (ARM). In my case the |
Disappeared for me in v2.3.3
|
Is there a way to mark a task's output as optional somehow? I have a monorepo in which some workspaces output coverage reports and some don't, so I have the following task definition in a global
Now when I run this, I get this warning for the projects that don't output any coverage reports, but I'm fine with that. Is there a way to mark the expected |
Verify canary release
Link to code that reproduces this issue
https://github.com/jahands/turborepo-warning-example
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
turbo 2.1.4-canary.9
Describe the Bug
Tasks with no outputs generate a warning like this:
I find this rather annoying
Expected Behavior
Not to print logs complaining of no outputs for tasks that have no outputs defined
To Reproduce
I repro'd this using create-turbo:
pnpm dlx create-turbo@latest cd ./turborepo-warning-example pnpm turbo lint
Results in the following logs:
To repro using my repo:
git clone https://github.com/jahands/turborepo-warning-example.git cd ./turborepo-warning-example pnpm install pnpm turbo lint
Additional context
Tested in both canary and 2.2.0
This behavior was introduced in #9236 which looks like it's only supposed to warn when you have outputs defined, not for every task regardless of whether it has outputs defined
The text was updated successfully, but these errors were encountered: