---
title: Unnecessary package task syntax error
description: Learn more about errors with unnecessary package task syntax in Turborepo.
product: turborepo
type: troubleshooting
summary: How to fix errors from using `package#task` syntax in a package-level turbo.json where it is unnecessary.
related:
  - /docs/reference/package-configurations
  - /docs/reference/configuration
---

# Unnecessary package task syntax error

Why this error occurred [#why-this-error-occurred]

Turborepo supports adding additional `turbo.json` files in a package directory
to override the `turbo.json` file declared at the repository root, a feature called [Workspace Configurations](/docs/crafting-your-repository/structuring-a-repository#specifying-packages-in-a-monorepo).
In those additional `turbo.json` files, you can only configure tasks for that specific
package. Therefore, only the task name should be included in the task,
not the package and task name (`package#task`).

`turbo.json` file in `apps/web` directory:

```json title="./turbo.json"
{
  "tasks": {
    "web#build": {
      "dependsOn": ["lint"]
    }
  }
}
```

Since this `turbo.json` file is inside a package directory, the `web` prefix is unnecessary.

Solution [#solution]

Remove the package prefix from the task name:

```json title="./turbo.json"
{
  "tasks": {
    "build": {
      "dependsOn": ["lint"]
    }
  }
}
```

---

[View full sitemap](/sitemap.md)