
text for searching
❯ pnpm turbo lintturbo 2.6.3turbo_json_parse_error × Failed to parse turbo.json. ╰─▶ × Found an unknown key `globalDependencies`. ╭─[turbo.json:5:3] 4 │ // https://turbo.build/repo/docs/core-concepts/caching/file-inputs#specifying-additional-inputs 5 │ "globalDependencies": [ · ──────────────────── 6 │ "pnpm-lock.yaml", ╰────idk why I’m receiving this error, since I think I’ve spelled it correctly? and the docs agree?
Docs: https://turborepo.com/docs/reference/configuration#globaldependencies
And my turbo.json:
my turbo.json
{ // Additive to package.json and turbo.json // // https://turbo.build/repo/docs/core-concepts/caching/file-inputs#specifying-additional-inputs "globalDependencies": [ "pnpm-lock.yaml", "patches", ".github/workflows/ci.yml", ".github/workflows/release.yml", ".github/workflows/push-dish.yml", ".github/workflows/deploy-preview.yml" ], "tasks": { ///////////////////////////////////////////////// ///////////////////////////////////////////////// // // Local Dev // ///////////////////////////////////////////////// ///////////////////////////////////////////////// "dev": { "dependsOn": ["^dev"], "cache": false }, "start": { "dependsOn": ["_syncPnpm", "^build"], "outputs": [], "cache": false, "persistent": true },I potentially thought this might be a jsonc → json mistake, but removing the leading comments doesn’t change the error:
❯ pnpm turbo lintturbo 2.6.3turbo_json_parse_error× Failed to parse turbo.json.╰─▶ × Found an unknown key globalDependencies.╭─[turbo.json:2:3]1 │ {2 │ “globalDependencies”: [· ────────────────────3 │ “pnpm-lock.yaml”,╰────After upgrading to 2.70
❯ pnpm turbo lintturbo 2.7.0turbo_json_parse_error× Failed to parse turbo.json.╰─▶ × Found an unknown key globalDependencies.╭─[turbo.json:2:3]1 │ {2 │ “globalDependencies”: [· ────────────────────3 │ “pnpm-lock.yaml”,╰────